Re: [PHP] Re: addslashes vs string unescape

2004-07-12 Thread Justin Patrin
On Mon, 12 Jul 2004 19:32:59 +0300, Skippy <[EMAIL PROTECTED]> wrote: > On Mon, 12 Jul 2004 17:15:15 +0200 Daniel Kullik <[EMAIL PROTECTED]> wrote: > > Skippy wrote: > > Can you use this? > > It seems to work, at first test, but it's somewhat convoluted. I've found > another fairly reasonable solu

Re: [PHP] Re: addslashes vs string unescape

2004-07-12 Thread Skippy
On Mon, 12 Jul 2004 17:15:15 +0200 Daniel Kullik <[EMAIL PROTECTED]> wrote: > Skippy wrote: > Can you use this? It seems to work, at first test, but it's somewhat convoluted. I've found another fairly reasonable solution: using $val instead of %val%. This way I don't need to ever show the actual c

[PHP] Re: addslashes vs string unescape

2004-07-12 Thread Daniel Kullik
Skippy wrote: I'm confronted with a somewhat weird problem and hopefully someone can make a suggestion. I have to perform the following 3-step task: Step 1. Someone provides a string (let's call it the formatting string) which contains a PHP expression, which will apply a PHP function on another st

[PHP] Re: addslashes

2004-06-11 Thread Justin Patrin
Torsten Roehr wrote: "Jough P" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Greetings all, I'm doing all my PHP development on my iBook running OS X. I'm currently working on a messaging tool for a website. When the messages are posted on my iBook the single quotes are escaped prop

[PHP] Re: addslashes

2004-06-11 Thread Torsten Roehr
"Jough P" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings all, > > I'm doing all my PHP development on my iBook running OS X. I'm > currently working on a messaging tool for a website. When the messages > are posted on my iBook the single quotes are escaped properly. When

[PHP] Re: addslashes

2004-01-15 Thread Justin Patrin
JoãO CâNdido De Souza Neto wrote: Hello to all. I'm using str_replace("\r\n","\\r\\n",addslashes($campo)) to add "\" in mysql data to send to javascript variable. Running in my machine with win xp + iis it's all ok, but in server with linux + apache, the javascript variable no have "\" causing er

[PHP] Re: addslashes() vs. magic_quotes_gpc

2003-10-20 Thread Jon Kriek
Compare mysql_escape_string() to addslashes() http://www.php.net/mysql_escape_string -- Jon Kriek http://phpfreaks.com "Jake McHenry" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] If you have magic_quotes_gpc = On in your php.ini file, which it is by default, does one still need to

[PHP] Re: addslashes/stripslashes

2002-11-05 Thread Erwin
Paul Dionne wrote: > Hey, > > I am trying to develop a search for my database. > > I used addslashes when entering the data, and then use addslashes > with the search but nothing comes up: > Select * from tblContacts, tblCountries WHERE > (tblContacts.CountryCode=tblCountries.CountryID) AND (Organ