The way I did my pictures within my database, was to just put in the location of the image, not the actual image ($location_of_image).
File the image in a directory and in your PHP script output the
$location_of_image as a part of the code example.
within the database:-
+---------------------------------------------------------+-----------------------+
- Location of Image - ALT of Image -
+---------------------------------------------------------+-----------------------+
-
http://www.slyvampy.com/images/image001.jpg - Image Details -
-
http://www.slyvampy.com/images/image002.jpg - Image Details -
+---------------------------------------------------------+-----------------------+
Within the code:-
Code: Select all
<?php
echo "
<IMG SRC=/" $location /" ALT=/" $alt /" BORDER=/"0/"> ";
?>
that way your database size is decreased and you can point the images from anywhere.
Hope this helps,
SteJ.