Hello,
I'm having a problem with my SQL statement. It appears that I cannot insert data into a field in a MySQL database. Here's my code:
mysql_query("UPDATE sometable SET somefield = '$text' WHERE somenumber = '$num'");
Now in this example, somefield has a data type of longtext. However, when I go to update it, the PHP script won't insert the characters in the variable $text. There are no errors, but it's weird because it won't insert anything.
Is it something with the UPDATE statement and the longtext data type, or is there something wrong with my script?
Thanks.