Hi everyone, first post on the forums!
This is the basic script I am using for a photo album on a website I am designing. It uses a flat file database instead of MySQL.
Contents of the image gallery page album.php:
This is the format used for the arrays in the database file photos.dat:
$lines = file('photos.dat');
foreach ($lines as $line_num => $line)
$tmp = explode('/*/*/', $line);
$photo = $tmp;
$thumb = $tmp;
$shortdesc = $tmp;
$longdesc = $tmp;
echo '<TD><IMG SRC="'.$thumb.'"><BR>'.$shortdesc.'</TD>';
./images/photo1.jpg /*/*/ ./images/th_photo1.jpg /*/*/ Short Desc /*/*/ Long Desc
./images/photo2.jpg /*/*/ ./images/th_photo2.jpg /*/*/ Short Desc /*/*/ Long Desc
(and so on)