Jump to content

Ignore Single Quotes In Sql Statement


Recommended Posts

Hello, I was wondering how to ignore single quotes in an SQL statement if my PHP variable contains them. Here is partial code:$vision_text = "That's my car";UPDATE riddell_text SET vision_text='$vision_text'I get an error because of the ' in It's.I thought that this would be easy to find, but I can seem to. Thanks,JW

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...