Re: Displaying images

From: Date: Sat, 22 Feb 2003 18:49:13 +0000
Subject: Re: Displaying images
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136652@lists.php.net to get a copy of this message
Robert, I am fairly new to php as well, but I think I may be able to help. Unless you need to modify the images when you display them, you should be able to just use html to display them as thus: --Start Code Here /* These variables would be filled in by the information you have from your flat file */ $img_loc_filename = "032902.jpg"; $img_width = 300; $img_height = 200; $img_description = "Description Here"; echo "<img src=$img_loc_filename border=0 width=$img_width height=$img_height ALT=$img_description>"; --End Code Here Or something along those line Sam
I'm a newbe to php and am trying to develop a routine to display artwork on my wife's site. I want to load from a flat file information about the artwork and image file names of the pieces. Then using the image file name, I want to display the image to the browser. I've figured out how to load the data from the file, but I could only find ("PHP and MySQL Web Development", Welling & Thomson) two functions to display the images: ImageCreateFromxxx or Imagexxx. Neither one works. In fact, Dreamweaver MX doesn't even show them as valid php functions. Any suggestions would be greatly appreciated.... Robert
-- ---------------------------------------------------------------- |Sam A. Funk http://www.samafunk.com sfunk@mac.com| |Wichita, KS Guitarist (self-proclaimed) Macintosh Fanatic| |Kansas Bluegrass Association http://www.kansasbluegrass.org/ | ----------------------------------------------------------------

« previous php.general (#136652) next »