DbSelect("SELECT cat FROM sites WHERE (id = ".$_GET["id"].")"); if ($site['cat'] == 2) $page = "indexadult.php"; } if ($db && $db->connected == 1) { $db->Close(); } header("Location: ".$page); ?>