query($s)) { $r = $db->get_row($s); $_SESSION["admincn"] = $r->id; header("Location:index.php"); exit(); } } ?>