From a892bd533c979079cc52a320fac638cdc0094eca Mon Sep 17 00:00:00 2001 From: Bishwarup Das Date: Wed, 3 Apr 2024 22:38:51 +0530 Subject: [PATCH] Update func1.php Changed Session variable name --- func1.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 +?>