diff --git a/uhome.php b/uhome.php new file mode 100644 index 0000000000000000000000000000000000000000..8137946dcacd58f85391221d5a33031cccc6cf38 --- /dev/null +++ b/uhome.php @@ -0,0 +1,42 @@ +<?php +session_start(); +include "database.php"; +function countRecord($sql,$mysqli) +{ +$res=$mysqli->query($sql); +return $res->num_rows; +} + +if(!isset( $_SESSION["ID"])) +{ + header("location:ulogin.php"); +} +?> + + +<!DOTYPE HTML> +<html> +<head> +<title>BOOK MANAGEMENT SYSTEM</title> +<link rel="stylesheet" type ="text/css" href="css/style.css"> +</head> +<body> +<div id="container"> +<div id="header"> +<h1>BOOK MANAGEMENT SYSTEM</h1> +</div> +<div id="wrapper"> + <h3 id="heading"> Welcome <?php echo $_SESSION["NAME"];?></h3> + +</div> +<div id="navi"> + <?php + include "usersidebar.php" + ?> +</div> +<div id="footer"> +<p>Copyright © book management 2020</p> +<div> +</div> +</body> +</html> \ No newline at end of file