adamlacombe Posted June 22, 2009 Share Posted June 22, 2009 I try to insert : Parent Message: <a href='index.php?action=msg&id=6'>6</a> <br /> --------------------------------------- <br /> This is what I get for 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 'index.php?action=msg&id=6'>6 --------------------------------------' at line 1 What is wrong with what I try to insert? Quote Link to comment https://forums.phpfreaks.com/topic/163260-solved-sql-syntax-error/ Share on other sites More sharing options...
Maq Posted June 22, 2009 Share Posted June 22, 2009 Did you run mysql_real_escape_string on it? Quote Link to comment https://forums.phpfreaks.com/topic/163260-solved-sql-syntax-error/#findComment-861344 Share on other sites More sharing options...
adamlacombe Posted June 22, 2009 Author Share Posted June 22, 2009 that would be the problem. Fixed it. Quote Link to comment https://forums.phpfreaks.com/topic/163260-solved-sql-syntax-error/#findComment-861356 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.