RE: [PHP] SQL in the database..little help please

2004-03-09 Thread Chris W. Parker
Ryan A on Tuesday, March 09, 2004 5:24 PM said: > I did that but when I checked in the DB I couldnt find the O/'reilly > as it saves it normally as "O'reilly". fyi, escaping is done with a \ and not a /. chris. -- PHP General Mailing List (http://www.php.net/)

Re[2]: [PHP] SQL in the database..little help please

2004-03-09 Thread Richard Davey
Hello Ryan, Wednesday, March 10, 2004, 1:39:40 AM, you wrote: RA> Yep, I got the above...but should I (or do I) need to use a stripslashes RA> when reading from the DB? Depends if you have magic quotes turned off or not! :) If they are OFF then yes, you need it. -- Best regards, Richard Davey

Re: [PHP] SQL in the database..little help please

2004-03-09 Thread Ryan A
> Hello Ryan, > > Wednesday, March 10, 2004, 1:24:04 AM, you wrote: > > RA> I have first put off magic_quotes...now can anybody tell me how > RA> YOU are doing it so I can do it the same damn exact way...reading > RA> online is a problem coz I am getting conflicting ways of doing > RA> itor am

Re: [PHP] SQL in the database..little help please

2004-03-09 Thread Richard Davey
Hello Ryan, Wednesday, March 10, 2004, 1:24:04 AM, you wrote: RA> I have first put off magic_quotes...now can anybody tell me how RA> YOU are doing it so I can do it the same damn exact way...reading RA> online is a problem coz I am getting conflicting ways of doing RA> itor am just braindead

[PHP] SQL in the database..little help please

2004-03-09 Thread Ryan A
Hi, I need to save some SQL queries into the MySql database for later use, I thought this was done pretty simply by doing a addslashes before insert so that someones name like like " O'reilly " does not screw up the insert and a stripslashes for reading from the DB. I did that but when I checked i