include "include_photos.php";
db_connect();
$result = mysql_query("select * from reicht_photo where id = '$photo'");
$check = mysql_fetch_array($result, MYSQL_ASSOC);
if ($check)
{
$photoname = mysql_result($result,0,"title");
$photofile = mysql_result($result,0,"filename");
$gallery = mysql_result($result,0,"galleryid");
}
else
{
exit;
}
$query_res = mysql_query("select * from reicht_photo WHERE (galleryid = '$gallery' and id < '$photo') ORDER BY id DESC LIMIT 0,1");
$check = mysql_fetch_array($query_res, MYSQL_ASSOC);
if($check) { $prev_id = $check[id]; } else { $prev_id = ""; }
$query_res = mysql_query("select * from reicht_photo WHERE (galleryid = '$gallery' and id > '$photo') ORDER BY id ASC LIMIT 0,1");
$check = mysql_fetch_array($query_res, MYSQL_ASSOC);
if($check) { $next_id = $check[id]; } else { $next_id = ""; }
page_top("$photoname");
?>
|
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo " ";
echo " | ";
echo " ";
echo " | ";
echo "
";
echo "
";
echo "";
echo "";
echo "";
echo "";
page_bottom();
?>