Re: [PHP] Quoting strings

2001-11-29 Thread Andrey Hristov
TED]> Sent: Thursday, November 29, 2001 2:12 PM Subject: [PHP] Quoting strings > Hi all, > > I have a fnction that needs to quote a strings in php to make them easy to > stick into an mysql db. > > I need to do basically "$msg", which is easy enough, but I would l

[PHP] Quoting strings

2001-11-29 Thread Jason Rennie
Hi all, I have a fnction that needs to quote a strings in php to make them easy to stick into an mysql db. I need to do basically "$msg", which is easy enough, but I would like to not quote strings that are already quoted and also escape any single or double quotes in the string. IS there a re