Re: [PHP] addslashes/stripslashes issue

2005-05-27 Thread John Nichel
JM wrote: Hi all, Ok here is what I need help with: $var = "i like fi'sh"; I'm able to addslashes(gather the data from a form), submit into the database, stripslashes(retrieve it). My problem is when I display it in a input type=text form the single quote is causing a truncation. will disp

Re: [PHP] addslashes/stripslashes issue

2005-05-27 Thread Rasmus Lerdorf
JM wrote: > Hi all, > Ok here is what I need help with: > > $var = "i like fi'sh"; > > I'm able to addslashes(gather the data from a form), submit into the > database, stripslashes(retrieve it). > > My problem is when I display it in a input type=text form the single > quote is causing a truncat

RE: [PHP] addslashes & stripslashes

2004-01-28 Thread Ford, Mike [LSS]
On 28 January 2004 12:31, Will wrote: > I'm a little confused with these functions. How I here you > ask. Well I thought I understood what they were for: > Escaping characters that might cause a problem when you enter > your data into a database query. i.e. \ ' " > > Anyway what is confusing me i

Re: [PHP] addslashes & stripslashes

2004-01-28 Thread memoimyself
Hello Will, On 28 Jan 2004 at 12:31, Will wrote: > However recently I encrypted some data which I stored in the database. > The string contained a \ which I added slashes to when entered in to > the database. But as the database appears to strips the first slash > off the double slash automatical

Re: [PHP] addslashes & stripslashes

2004-01-28 Thread Marek Kilimajer
Will wrote: I'm a little confused with these functions. How I here you ask. Well I thought I understood what they were for: Escaping characters that might cause a problem when you enter your data into a database query. i.e. \ ' " Anyway what is confusing me is, say I have a string which contai

Re: [PHP] addslashes/stripslashes

2002-11-06 Thread Paul Dionne
thanks guys, got it working now. Removed Addslashes and it works fine. 1lt John W. Holmes wrote: >> 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,

Re: [PHP] addslashes/stripslashes

2002-11-05 Thread 1LT John W. Holmes
> 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 (Organization LIKE > '%o\'mallies

Re: [PHP] addslashes/stripslashes

2002-11-05 Thread Rick Emery
what happens when you type: Select * from tblContacts, tblCountries WHERE (tblContacts.CountryCode=tblCountries.CountryID) AND (Organization LIKE '%o\'mallies%' ) at the mysql command line? - Original Message - From: "Paul Dionne" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesda

RE: [PHP] addslashes/stripslashes

2002-11-05 Thread Rudolf Visagie
Don't know which database you're using but in Oracle you would use: Select * from tblContacts, tblCountries WHERE (tblContacts.CountryCode=tblCountries.CountryID) AND (Organization LIKE '%o''mallies%' ) Escape(\) is only used in PHP syntax, not SQL. Regards -Original Message- From: P

Re: [PHP] addslashes, stripslashes

2001-11-26 Thread Pat Lashley
--On Monday, November 26, 2001 04:47:35 PM -0800 Scott Aikin <[EMAIL PROTECTED]> wrote: > I've come across a strange problem working backwards with stripslashes > after running addslashes. I take a string like: > > "\t\4" > > and run it through addslashes, the result is: > > \\t\\4 > > After gr