Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apostrof replace first worked and now it doesn't

Status
Not open for further replies.

hos2

Programmer
May 6, 2002
418
NL
before I do an insert in mysql I replace all the apostrofs like this. but suddenly it doesn't work anymore. perhaps I have a new php version since I transfered from one server to another but can anyone tell me why this doesn't work ???

$llfmessage = str_replace (chr(39), "\'", $llfmessage);
 
What actually happens when you try? because I just started working with PHP (latest ver. at home) and went to do the same thing. I got confused for a minute because PHP was replacing them for me when I did a INSERT so they were replaced twice.

Something to check.
[smurf]
01101000011000010110010001110011
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top