Jump to content

Special Characters


conan318

Recommended Posts

does the varchar not allow  qoutes??

 

example

August 28th an Out N' back from the Station departing 8 AM.
Then, September 11th and October 16th
We also have a fair crew riding Wollomi Wild Ride so sign up on line

this give's 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 '2011/08/05')' at line 1

remove the qoute ' and it works fine

August 28th an Out N back from the Station departing 8 AM.
Then, September 11th and October 16th
We also have a fair crew riding Wollomi Wild Ride so sign up on line

 

Link to comment
Share on other sites

If the data is escaped properly, there should be no need to use stripslashes().  Slashes aren't stored with the data unless it somehow ends up double escaped. Which brings up the point that addslashes() shouldn't be used when there's a db specific escaping function available, such as mysql_real_escape_string().

Link to comment
Share on other sites

If the data is escaped properly, there should be no need to use stripslashes().  Slashes aren't stored with the data unless it somehow ends up double escaped. Which brings up the point that addslashes() shouldn't be used when there's a db specific escaping function available, such as mysql_real_escape_string().

 

If that's the case then OP you should be checking if magic_quotes_gpc is on or not (off usually), since if you do get double escaped you would need the strip slashes.

 

f\\'oo

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.