Hi,

Thanks.. actually that problem is solved, this is what
i used :

$myrow[ilmage] = eregi_replace('\.jpg$', 'a.jpg',
$myrow[ilmage]);
  $myrow[ilmage] = eregi_replace('\.gif$', 'a.gif',
$myrow[ilmage]);

and it's now showing the small images with the "a"!! 

Thanks AGAIN!
T. Edison Jr.



--- Miguel Cruz <[EMAIL PROTECTED]> wrote:
> (untested)
> 
>   $newname = eregi_replace('\.jpg$', 'a.jpg',
> $oldname);
> 
> No point messing up your database; just use
> something like the above when 
> you're outputting the image tags for the thumbnails.
> 
> miguel
> 
> On Mon, 8 Apr 2002, Thomas Edison Jr. wrote:
> 
> > I have a new very intriguing problem at hand. 
> > 
> > I have the name of my Images stored in my mySQL
> > database in one column. Now when i pick the
> images,
> > they are displayed as it as. However, they are the
> big
> > images, and the thumbnails of those images are
> stored
> > with an "a" at the end of thier names. 
> > That is, 
> > If the image is "try.jpg" , the thumbnail of the
> image
> > is "trya.jpg" !!
> > Now i want to display the thumbnail and not the
> large
> > image. And unfortunately, my whole database
> contains
> > the name of Large images and NOt the Thumbnails.
> > 
> > How can i :
> > 1. Insert "a" at the end of the name of the image,
> > before the ".extension" through PHP. 
> > The problems are that the names are stored in the
> > database WITH the extesion. And the extensions
> also
> > vary, some are JPG and some are GIF. So in my
> datase i
> > have images as "try.jpg" or "something.gif"! How
> can i
> > insert an "a" at the end of the name before the
> "." ?
> > 
> > 2. OR.. can i insert the "a" before the "." in the
> > image name in my mySQL database itself. 
> > 
> > Either of the two solutions can work for me. 
> > 
> > Thanks,
> > T. Edison Jr.
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Tax Center - online filing with TurboTax
> > http://taxes.yahoo.com/
> > 
> > 
> 


=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to