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.
input type=text
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.
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.
input
Im 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
an
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
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 automatically.
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 is, say
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,
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%' )
: 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 addslashes with the
search but nothing
, 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 * from tblContacts, tblCountries WHERE
(tblContacts.CountryCode
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%' )
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
--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 grabbing this
14 matches
Mail list logo