<?php session_start(); $conn = mysqli_connect("localhost","root", "","bosmak_properties"); echo $_SESSION['user_name']; $query=mysqli_query($conn,"SELECT * from users WHERE user_name =".$_SESSION['user_name']); while ($row=mysqli_fetch_array($query)){ $privileges=$row['privileges']; } if($privileges==1){ header ("Location: project_cost.php"); } else{ header ("Location: login/logout.php"); } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)