Not sure what is going on with my code but for some reason I can't get the database to update (using code that has worked on MySQL 4 now running on MySQL 5).
I'm sure I am just missing something simple but any pointers would be great. I have tried using the code that is on tizag (going back to basics) but still get the error:
Cheers
PHP:
mysql_query("update products set desc='$desc' where id=$ref;")
I'm sure I am just missing something simple but any pointers would be great. I have tried using the code that is on tizag (going back to basics) but still get the error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc='
Cheers