Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest Anonymous

php-mysql

Recommended Posts

Guest Anonymous

When I try to make insert or update

ex: insert into t1 (flt) values (\'Magnus\')

I get this 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 \'\'Magnus\')\' at line 1

 

 

What shall I do?

Share this post


Link to post
Share on other sites

Post the actual PHP code, there may be an error in the way you are constructing the query.

Share this post


Link to post
Share on other sites

My email reply to you got bounced.

 

Post your code in the forum.

 

Private consultations 35 euro/hr, 50 euro minimum, payable in advance, especially for bouncing email addresses.

Share this post


Link to post
Share on other sites

try using stripslashes(); against the sql if it is being transferred.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.