Web Hosting Talk







View Full Version : php+mysql with images


nightduke
10-06-2002, 02:27 PM
Hi i have a database in mysql with images like /images/cd001/cd00101.jpg and /images/cd002/cd001101.jpg
and i wish to use a php to view these images that are stored on a directory, the path of that directory is saved on a database at mysql with other information, cd title, keywords of that image etc
how can i also i see the image and a big image and the rest of the information of the image?
How can i do this?.

Thanks a lot.

kyun
10-06-2002, 05:25 PM
Use php GD's library.

<?php

$image = ImageCreateFromJpeg ("/images/cd001/cd00101.jpg");

ImageJpeg($image);

?>

There are more functions from php.net.
http://www.php.net/manual/en/ref.image.php