Re: [PHP] Adding a in try.jpg! Problems!

2002-04-08 Thread Thomas Edison Jr.
Hi, Thanks for your relies. There are a couple of problems. Firstly, i'm picking the filename from the database, so my code is something like this : if ($myrow = mysql_fetch_array($result)) { do { echo( img src=\images\\$myrow[ilmage]\ ); } while ($myrow =

Re: [PHP] Adding a in try.jpg! Problems!

2002-04-08 Thread Miguel Cruz
$thumbnail = eregi_replace('\.jpg$', 'a.jpg', $myrow['ilmage']); $thumbnail = eregi_replace('\.gif$', 'a.gif', $thumbnail); It's no problem to do it twice in a row; it'll pick up one or the other. miguel On Mon, 8 Apr 2002, Thomas Edison Jr. wrote: Hi, Thanks for your relies. There are

Re: [PHP] Adding a in try.jpg! Problems!

2002-04-08 Thread Richard Baskett
it with the 'a'.. Hope it helps! Rick Be kind. Everyone you meet is fighting a hard battle - John Watson From: Thomas Edison Jr. [EMAIL PROTECTED] Date: Mon, 8 Apr 2002 01:17:51 -0700 (PDT) To: Miguel Cruz [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Adding a in try.jpg! Problems! Hi

Re: [PHP] Adding a in try.jpg! Problems!

2002-04-08 Thread Michael Virnstein
$myrow[ilmage] = eregi_replace((\.[^\.]+)$, a\\1, $myrow[ilmage]); and if ilmage isn't a constant use $myrow[ilmage]. Thomas Edison Jr. [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, Thanks for your relies. There are a couple of problems. Firstly,

Re: [PHP] Adding a in try.jpg! Problems!

2002-04-08 Thread Michael Virnstein
ROTECTED] Subject: Re: [PHP] Adding a in try.jpg! Problems! Hi, Thanks for your relies. There are a couple of problems. Firstly, i'm picking the filename from the database, so my code is something like this : if ($myrow = mysql_fetch_array($result)) { do { echo( img src=\images

Re: [PHP] Adding a in try.jpg! Problems!

2002-04-08 Thread Michael Virnstein
guel Cruz [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Adding a in try.jpg! Problems! Hi, Thanks for your relies. There are a couple of problems. Firstly, i'm picking the filename from the database, so my code is something like this : if ($myrow = mysql_fet