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? 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? 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. Link to comment https://forums.phpfreaks.com/topic/163260-solved-sql-syntax-error/#findComment-861356 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.