Lo people,
I am new here as you can prolly tell by my post count
tend to hang over at highrankings a lot, and was pointed this way from a mod there (hi Chris).
Anyway - I have come across a prob with mysql queries - when I submit say a string to a varchar field, that contains a comma, I get a mysql error for example:
$query = "INSERT INTO sometable (title) VALUES ('Hello, I am a fish')";
mysql_query($query);
Now short of parsing the mysql data replacing commas with spaces etc, does anyone know whats going wrong here?
Cheers
LiLo
I am new here as you can prolly tell by my post count
Anyway - I have come across a prob with mysql queries - when I submit say a string to a varchar field, that contains a comma, I get a mysql error for example:
$query = "INSERT INTO sometable (title) VALUES ('Hello, I am a fish')";
mysql_query($query);
Now short of parsing the mysql data replacing commas with spaces etc, does anyone know whats going wrong here?
Cheers
LiLo