Welcome to WebmasterWorld Guest from 188.8.131.52
mysql_query("INSERT INTO `some` VALUES ('" . mysql_real_escape_string($html) . "')");
but thats not worked...
any idea plz
$html is like any page html code ...
the mysql type for html is i tried text and longtext both are not working using mysql_real_escape_string its INSERT the half data not the full
but that's not worked...
Ah, it seems that I either missed something or you edited your post. How long is the string you're trying to insert? Did you check the length of the TEXT data types [dev.mysql.com] to make sure it would fit?
in my case i tried both of them but with both i just see its INSERT the half data
and yes i am only doing mysql_real_escape_string
can htmlentities help how do i use it ?
print '>>>' . htmlentities($html) . '<<<';
mysql_query("INSERT ... ");