$imgs=array(
array(
"mal.jpg",
"Altered Picture Of Myself",
),
array(
"TechHell.jpg",
"Altered Picture Of Myself. With A drawing I did.",
),
array(
"Decembers-Spawn.jpg",
"A drawing labled Decmbers Spawn.",
),
array(
"genevee.jpg",
"Me - Licking the a Scanner",
)
);
$id=$_GET["id"];
if (!$id) $id=0;
list($url, $comment)=$imgs[$id];
$prev=false;
$next=false;
if ($id>0) {
$prev=$id-1;
}
if ($id<(count($imgs)-1)) {
$next=$id+1;
}
echo $comment."<p><img src=\"".$url."\"><p>";
if ($prev) echo '<a href="?id='.$prev.'">Previous</a>';
if ($prev!==false && $next!==false) echo ' - ';
if ($next) echo '<a href="?id='.$next.'">Next</a>';
I've not tested it, but it's the rough idea. The most elegant solution would be to power it by a database. You could easily adapt this code to work with a db.
dave