diff --git a/func1.php b/func1.php index 7f2d203..f2c41d0 100755 --- a/func1.php +++ b/func1.php @@ -8,11 +8,12 @@ $result=mysqli_query($con,$query); if(mysqli_num_rows($result)==1) { - while($row=mysqli_fetch_array($result,MYSQLI_ASSOC)){ + // while($row=mysqli_fetch_array($result,MYSQLI_ASSOC)){ - $_SESSION['dname']=$row['username']; + // $_SESSION['dname']=$row['username']; - } + // } + $_SESSION['dname']=$dname; header("Location:doctor-panel.php"); } else{ @@ -215,4 +216,4 @@ function display_admin_panel(){ '; } -?> \ No newline at end of file +?>