Re: [PHP-DB] Replacing "+" with " " question

2003-09-30 Thread CPT John W. Holmes
From: "Graeme McLaren" <[EMAIL PROTECTED]> > Jason, thank you for reply. I tried switching the 1st 2 parameters in the > str_replace function so that it now looks like this: > > $AddressLine1 = urlencode($AddressLine1); > > $AddressLine1 = str_replace("+", " ", $AddressLine1); > > > > Unfortunate

Re: [PHP-DB] Replacing "+" with " " question

2003-09-30 Thread Graeme McLaren
symbols with a space " " only the part up to the first space is displayed back to the user. Any ideas? Cheers again, Graeme :) - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 30, 2003 7:12 PM Subject:

Re: [PHP-DB] Replacing "+" with " " question

2003-09-30 Thread Jason Wong
On Wednesday 01 October 2003 01:06, Graeme McLaren wrote: > This is what I have so far by the string replace function doesn't replace > the spaces and display bla bla bla as I want: Probably it's because you're trying to replace spaces with +. Swap your first 2 parameters. > $AddressLine1 = url

Re: [PHP-DB] Replacing * with %

2002-01-15 Thread Bruno Gimenes Pereti
D]> Sent: Tuesday, January 15, 2002 9:07 AM Subject: Re: [PHP-DB] Replacing * with % > Hi Markus, > > I think you forgot to assign the value of ereg_replace to a variable. I made > this test and it worked: > > $t = 'abc*cde*'; > printf("%s\n", ereg_

Re: [PHP-DB] Replacing * with %

2002-01-15 Thread Bruno Gimenes Pereti
Hi Markus, I think you forgot to assign the value of ereg_replace to a variable. I made this test and it worked: Hope it helps, Bruno Pereti. - Original Message - From: "Markus Lervik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 15, 2002 7:40 AM Subject: [PHP-D

RE: [PHP-DB] Replacing * with %

2002-01-15 Thread matt stewart
P-DB] Replacing * with % The following works fine for me: $currentword = ereg_replace("\*","%",$currentword); Chris }:) > -Original Message- > From: matt stewart [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, January 15, 2002 9:57 AM > To: [EMAIL PROTECTED

RE: [PHP-DB] Replacing * with %

2002-01-15 Thread Rosser, Chris
The following works fine for me: $currentword = ereg_replace("\*","%",$currentword); Chris }:) > -Original Message- > From: matt stewart [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, January 15, 2002 9:57 AM > To: [EMAIL PROTECTED] > Subject:

RE: [PHP-DB] Replacing * with %

2002-01-15 Thread matt stewart
ubject: RE: [PHP-DB] Replacing * with % /* sorry markus, forgot to post this to the list, so here it is again! */ don't know if this is the solution without doing some reading, so i'll tell you what i think it might be and you can read up on it! is either (or both?) * and % special c

RE: [PHP-DB] Replacing * with %

2002-01-15 Thread matt stewart
/* sorry markus, forgot to post this to the list, so here it is again! */ don't know if this is the solution without doing some reading, so i'll tell you what i think it might be and you can read up on it! is either (or both?) * and % special characters in regular expressions? if so, it may be p