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
$titel
$tekst
"; // 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
"; $terug .= "\n "; $terug .= "\n
$titel
$tekst
"; $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; } ?>