aspdude2004
05-16-2004, 05:23 PM
<html>
<head>
<title></title>
</head>
<body>
hello
<?
// change this to the amount of images ;)
$image_amount = 005;
// make this the source for the NEXT icon please include the extension
// eg next.gif
$nex = "something.gif";
// make this the source for the BACK icon please include the extension
// eg back.gif
$bac = "something.gif";
// be careful when editing below this line
$image = $_GET['image'];
// if there is nothing after the .php set it as no 1
if (!$image) {
$image = 001;
}
// print the image
echo = "<img src=\"ntsk".$image.".gif\">";
// print the nexts etc
echo "Image ".$image." out of ".$image_amount."";
if ($page != "001" || $page != $image_amount} {
<br>
$image_new = $image++;
$image_old = $image--;
echo = "<a href=\"gallery.php?image=".$image_old."\"><img src=\"".$bac."\"></a>";
echo = "<a href=\"gallery.php?image=".$image_new."\"><img src=\"".$nex."\"></a>";
}elseif ($page == "001") {
echo = "<img src=\"".$bac."\">";
echo = "<a href=\"gallery.php?image=".$image_new."\"><img src=\"".$nex."\"></a>";
} elseif ($page == $image_amount) {
echo = "<a href=\"gallery.php?image=".$image_old."\"><img src=\"".$bac."\"></a>";
echo = "<img src=\"".$nex."\">";
}
echo "<hr color=\"black\" height=\"1\">";
?>
</body>
</html>
Please could you tell me what is wrong with this code?
<head>
<title></title>
</head>
<body>
hello
<?
// change this to the amount of images ;)
$image_amount = 005;
// make this the source for the NEXT icon please include the extension
// eg next.gif
$nex = "something.gif";
// make this the source for the BACK icon please include the extension
// eg back.gif
$bac = "something.gif";
// be careful when editing below this line
$image = $_GET['image'];
// if there is nothing after the .php set it as no 1
if (!$image) {
$image = 001;
}
// print the image
echo = "<img src=\"ntsk".$image.".gif\">";
// print the nexts etc
echo "Image ".$image." out of ".$image_amount."";
if ($page != "001" || $page != $image_amount} {
<br>
$image_new = $image++;
$image_old = $image--;
echo = "<a href=\"gallery.php?image=".$image_old."\"><img src=\"".$bac."\"></a>";
echo = "<a href=\"gallery.php?image=".$image_new."\"><img src=\"".$nex."\"></a>";
}elseif ($page == "001") {
echo = "<img src=\"".$bac."\">";
echo = "<a href=\"gallery.php?image=".$image_new."\"><img src=\"".$nex."\"></a>";
} elseif ($page == $image_amount) {
echo = "<a href=\"gallery.php?image=".$image_old."\"><img src=\"".$bac."\"></a>";
echo = "<img src=\"".$nex."\">";
}
echo "<hr color=\"black\" height=\"1\">";
?>
</body>
</html>
Please could you tell me what is wrong with this code?