Vim Tips Wiki
Advertisement

mysql_query("INSERT INTO messages(`name`,`email`,`msg`,`date`,`image`) VALUES('$name','$email','$msg','$date','$image')")or die(mysql_error());

when i'm executing this code i'm getting an 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 'l try','2013/08/09','ÿØÿà\0�JFIF\0��\0\0�\0�\0\0ÿþ\0�*\0ÿâ��ICC_PROFILE\0��\0\0�' at line 1

can u plz help

Advertisement