query("select * from `homebanner` where publish=1 order by id"); $bannerdesc_rs=$db->rs; $a=mysql_num_rows($bannerdesc_rs); while($bannerdesc_row=mysql_fetch_array($bannerdesc_rs)) { $pgdb = new DB(); $pg_sql="select * from `cmspage` where pageid='".$bannerdesc_row['url']."'"; $pg_cnt=$pgdb->query($pg_sql); $pg_row=$pgdb->getrec(); if($pg_row['pageid'] == '1') { $linker = "#"; } else { $linker = "body.php?id=".$pg_row['pageid']."&pgname=".$pg_row['pagetitle']; } ?>

Welkom bij Circus Dircus

    query("select * from `homebanner` where publish=1 order by id"); $banner_rs=$db->rs; $a=mysql_num_rows($banner_rs); while($banner_row=mysql_fetch_array($banner_rs)) { ?>