I am developing wap forum for my site in PHP mysql.Now in the descriptions of the forum i use `longtext` datatype.when user enters the description above 1500 characters its not inserted into database.I have searched for that and find something like

`TINYTEXT 256 bytes`

`TEXT 65,535 bytes ~64kb`

`MEDIUMTEXT 16,777,215 bytes ~16MB`

`LONGTEXT 4,294,967,295 bytes ~4GB`

so why the description above 1500 characters is not inserted ? and what is the solution of this thing ?

Edit: The code being used for the insert (taken from comments):

```
$sql1="
    INSERT INTO 
        forum_top
        (catID,forumN,forumDescr,forum_time,uID,forum_attach) 
        VALUES ($cat_idd,'$top_namee','$top_descri','$tmform',$n_u_id,'$newfilename')"; 
if (!mysql_query($sql1,$con)) { die('Error: ' . mysql_error()); }

```

$top\_descri comes from:

```
 $top_descri =nl2br(mysql_real_escape_string($_POST['top_descri']));

```

I have solved it i use some function that check the length of the description and the limit of that function is 1500 chars so its stop working.Now working fine.