'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)
> >
; 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
$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
;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
$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
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);
>
6 matches
Mail list logo