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
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
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
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
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
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
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
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,
> 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
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 *
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
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%' )
--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
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
14 matches
Mail list logo