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

[PHP] addslashes/stripslashes issue

2005-05-27 Thread JM
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 display as: i l

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

[PHP] addslashes & stripslashes

2004-01-28 Thread Will
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 contains

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
t; To: <[EMAIL PROTECTED]> Sent: Tuesday, November 05, 2002 9:25 AM Subject: [PHP] addslashes/stripslashes 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 *

RE: [PHP] addslashes/stripslashes

2002-11-05 Thread Rudolf Visagie
Original Message- From: Paul Dionne [mailto:PDionne@;Speakeasy.net] Sent: Tuesday, November 05, 2002 5:26 PM To: [EMAIL PROTECTED] Subject: [PHP] addslashes/stripslashes Hey, I am trying to develop a search for my database. I used addslashes when entering the data, and then use addslashe

[PHP] addslashes/stripslashes

2002-11-05 Thread Paul Dionne
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 (Organization LIKE '%o\'mallies%' )

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

[PHP] addslashes, stripslashes

2001-11-26 Thread Scott Aikin
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 grabbing this data from the database and running 'stripslashes', the data comes out as: "\t" without the