Guest Anonymous Posted August 20, 2003 Share Posted August 20, 2003 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? Quote Link to comment https://forums.phpfreaks.com/topic/923-php-mysql/ Share on other sites More sharing options...
Barand Posted August 22, 2003 Share Posted August 22, 2003 Post the actual PHP code, there may be an error in the way you are constructing the query. Quote Link to comment https://forums.phpfreaks.com/topic/923-php-mysql/#findComment-3116 Share on other sites More sharing options...
Barand Posted August 26, 2003 Share Posted August 26, 2003 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. Quote Link to comment https://forums.phpfreaks.com/topic/923-php-mysql/#findComment-3194 Share on other sites More sharing options...
effigy Posted August 27, 2003 Share Posted August 27, 2003 try using stripslashes(); against the sql if it is being transferred. Quote Link to comment https://forums.phpfreaks.com/topic/923-php-mysql/#findComment-3196 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.