SQL Syntax error?
Posted: Sat Nov 29, 2008 10:41 pm
Sometimes I get a error when trying to insert MySQL from a PHP script when I have a ' and sometimes I do not. I have the exact same code on one server and do not get the error but on the other server I do. It's the same exact small framework I made on both sites. Just when I try to submit a textarea or anything with a ' on this one server it gives me the syntax error next to the '. Any ideas why? Thanks.
Edit:
One thing I noticed is the server giving me the error uses MySQL 4.x but the server without the ever is using MySQL 5.x. Could this be the reason?
Edit:
One thing I noticed is the server giving me the error uses MySQL 4.x but the server without the ever is using MySQL 5.x. Could this be the reason?