include("common/taal.php"); include("common/bb_func.php"); include("common/dbconnect.php"); if(is_numeric($_GET[fotoID])) $foto = mysql_fetch_assoc(mysql_query("SELECT * FROM `fotos` WHERE `fotoID` = $_GET[fotoID]")); if(is_numeric($_GET[picID])) { $foto = mysql_fetch_assoc(mysql_query("SELECT fotos.*,pageID FROM `fotos` LEFT JOIN pic USING (fotoID) WHERE `picID` = $_GET[picID]")); if($foto[pageID]) { $res = mysql_query("SELECT picID FROM pic WHERE pageID = $foto[pageID] ORDER BY fotoID"); while(list($picid) = mysql_fetch_row($res)) { $fotolist[] = $picid; if($picid == $_GET[picID]) $current = sizeof($fotolist)-1; } if(sizeof($fotolist) > 1) { $prev = $current-1; $next = $current+1; if($prev < 0) $prev = sizeof($fotolist)-1; if($next >= sizeof($fotolist)) $next = 0; $nav = "
| |
");
if($foto["titel".$taalAdd]) echo(" ");
}
echo("
".$foto["titel".$taalAdd].""); if($foto["text".$taalAdd]) echo($foto["text".$taalAdd]); echo(" |
|
copyright©2007petermarcuse all rights reserved |