View Single Post
  #5 (permalink)  
Old 08-27-2007, 07:13 PM
magnets magnets is offline
WebProWorld New Member
 

Join Date: Aug 2007
Posts: 14
magnets RepRank -1
Default Re: single quote in mysql record

Whenever I receive data from an untrusted source I do a string replace and change a quote (') to a tick (`) character. Even if I forget to change it back later for display purposes, people get the idea anyway.

If it is a trusted source of mine, it does not have a quote (') in the first place.
Reply With Quote