Thanks for your help everyone, I feel pretty embarrassed to have made a
mistake like that! :o
-Original Message-
From: Bojan Gajic [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 29 July 2001 12:44 AM
To: Matt Stone
Subject: Re: [PHP] Stripping single quotes
you are not assigning
Any ideas? Thanks,
>
> Matt Stone
>
> -Original Message-
> From: Chris Fry [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 28 July 2001 2:15 PM
> To: Matt Stone
> Cc: PHP list
> Subject: Re: [PHP] Stripping single quotes
>
>
> Matt,
>
> Try ereg
Any ideas? Thanks,
Matt Stone
-Original Message-
From: Chris Fry [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 28 July 2001 2:15 PM
To: Matt Stone
Cc: PHP list
Subject: Re: [PHP] Stripping single quotes
Matt,
Try ereg_replace:-
$fldemail == ereg_replace("'","&qu
Matt,
Try ereg_replace:-
$fldemail == ereg_replace("'","",$fldemail);
Chris
Matt Stone wrote:
> Hi all,
> I am trying to validate some email addresses before they are entered into
> the database.
> The problem is, some thick or malicious people are entering single quotes
> into their email a
Hi all,
I am trying to validate some email addresses before they are entered into
the database.
The problem is, some thick or malicious people are entering single quotes
into their email addresses.
I need to strip out all these single quotes but a little ole' str_replace
doesn't seem to be working
use the following code
$vals=explode("'", "'abc'");
$your_value=$vals[0]; //I am little confused, if it is not working try
index1
Elan wrote:
> Hi,
>
> I have a string, "'abc'". How do I convert it to "abc" (i.e. how do I
> strip the embedded single quotes) with a minimum of overhead?
>
> (In
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Elan)
wrote:
> I have a string, "'abc'". How do I convert it to "abc" (i.e. how do I
> strip the embedded single quotes) with a minimum of overhead?
If there's no chance that the string could also contain legit single-quotes
(such as as an apo
Hi,
I have a string, "'abc'". How do I convert it to "abc" (i.e. how do I
strip the embedded single quotes) with a minimum of overhead?
(In case you'r wondering: I created the quoted string to store it in
MySQL, now I want to display the same string in a Webpage. Usually the
strings I display do
8 matches
Mail list logo