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

2002-04-08 Thread Michael Virnstein
'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) > >

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

2002-04-08 Thread Michael Virnstein
; echo "" > } > > What this will do is take your image split the image at the '.' then echo it > with the 'a'.. Hope it helps! > > Rick > > Be kind. Everyone you meet is fighting a hard battle - John Watson > > > From: "Thomas Edi

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 > proble

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

2002-04-08 Thread Richard Baskett
;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] > Subjec

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 ar

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(" wrote: > (untested) > > $newname = eregi_replace('\.jpg$', 'a.jpg', > $oldname); >