title: I can't upload a very long text in to MySQL with PHP
body: <p>I want to upload some text to my MySQL data base. But if the text is longer than 64328 characters it wil upload only first 64328 characters of the text.
  How can I fix it?</p>
  
  <p>I use this code to upload text to MySQL database:</p>
  
  <pre><code>&lt;? php
  //conect to a database
  $mysqli = new mysqli("localhost", "root", "", "my_db");
  if ($mysqli-&gt;connect_errno) {
      echo "Failed to connect to MySQL: (" . $mysqli-&gt;connect_errno . ") " . $mysqli-&gt;connect_error;
  }
  
  //insert a post
  $sql="INSERT INTO forum(id, message) VALUES(0, '$message')";
  $mysqli-&gt;query($sql);
  ?&gt;
  </code></pre>