include_once "include/global.php"; include_once "include/functions.php"; $DB = new DB; $aGalleries = array("wcs", "politics", "whothehell", "andthensome", "blahblah", "oldstuff", "itmoves", "dontgothere", "hello"); function showKnop($pageAlias) { global $DB, $aGalleries; if (in_array($pageAlias, array("wcs", "politics", "andthensome", "oldstuff"))) { $qPage = $DB->query("select * from portfolio where pageAlias = '$pageAlias' and publish = 1 order by volgorde desc "); // de eerste $rPage = mysql_fetch_array($qPage); $pId = $rPage['pId']; $afb = $rPage['afb']; $titel = $rPage['titel']; $tekst = stripslashes($rPage['tekst']); $terug = "\n"; $terug .= "\n
"; // en de rest while ($rPage = mysql_fetch_array($qPage)) { $pId = $rPage['pId']; $titel = $rPage['titel']; $tekst = stripslashes($rPage['tekst']); $afb = $rPage['afb']; $thumb = $rPage['thumb']; $terug .= "\n"; } } if (in_array($pageAlias, array("whothehell", "itmoves", "dontgothere", "hello", "blahblah"))) { $qPage = $DB->query("select * from portfolio where pageAlias = '$pageAlias' and publish = 1 order by volgorde desc "); $rPage = mysql_fetch_array($qPage); $pId = $rPage['pId']; $terug = "\n"; } return $terug; } ?>