Jump to content

Ignore Single Quotes In Sql Statement


justinbriggs1

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

Archived

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

×
×
  • Create New...