aebstract Posted March 1, 2010 Share Posted March 1, 2010 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 I get this error followed by the input and line number, it happens anytime there is a space in the string trying to be inserted. Any clue as to why? I've never had this problem as far as I can remember. The fields I am trying to insert in to are all varchar. (can varchar not have a space in it?) The information is coming from a form, by using $_POST[value]. Thanks Link to comment https://forums.phpfreaks.com/topic/193833-insert-string-with-a-space-in-it-to-db/ Share on other sites More sharing options...
aebstract Posted March 1, 2010 Author Share Posted March 1, 2010 I put single quotes around all the values and it entered correctly. Link to comment https://forums.phpfreaks.com/topic/193833-insert-string-with-a-space-in-it-to-db/#findComment-1020147 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.