Results 1 to 2 of 2
  1. #1
    Join Date
    May 2002
    Location
    Spain
    Posts
    121

    Question php+mysql with images

    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.

  2. #2
    Join Date
    Apr 2002
    Posts
    61
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •