Jump to content

insert string with a space in it to db?


aebstract

Recommended Posts

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

Archived

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

×
×
  • Create New...

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.