prepare("select * from school") ; $sql->execute() ; if($sql->rowcount() == 0) header("location: school.php") ; ?>