<?php include('header.php'); ?> <?php if($acn=="Update") { $username=$_REQUEST['user_name']; $password=$_REQUEST['user_password']; $email=$_REQUEST['email']; $sql="update admin_info set username='$username',password='$password',email='$email' where id='".$_SESSION['user_id']."'"; mysqli_query($conn,$sql); echo "<script>location.replace('admin_info.php?msg=Admin information has been updated')</script>"; } $sql="select * from admin_info where id='".$_SESSION['user_id']."'"; $sql=@mysqli_query($conn,$sql); $row=@mysqli_fetch_array($sql); $user_name=$row['username']; $user_password=$row['password']; $email=$row['email']; ?> <link href="includes/css-js/admin.css" rel="stylesheet" type="text/css" /> <tr> <td height="350" valign="top" style="padding:10px;"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="images/spacer.gif" alt="" width="210" height="1" /></td> <td><img src="images/spacer.gif" alt="" width="10" height="1" /></td> <td width="100%"><img src="images/spacer.gif" alt="" width="1" height="1" /></td> </tr> <tr> <td valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="0" > <tr> <td><fieldset class="bdr1" > <?php include('left_nav.php'); ?> </fieldset> </td> </tr> </table></td> <td><img src="images/spacer.gif" alt="" width="10" height="10" /></td> <td align="left" valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><fieldset class="bdr1" > <legend class="heading1">Welcome Admin</legend> <center> <form name="f1" method="post" action="admin_info.php"> <table border="0"> <tr> <td colspan="2" align="center"><font color="maroon"></font></td> </tr> <tr> <td align="right">User Name:</td> <td><input type="text" class="textbox1" name="user_name" size="45" value="<?php echo $user_name?>"></td> </tr> <tr> <td align="right">Password:</td> <td><input type="password" class="textbox1" name="user_password" size="45" value="<?php echo $user_password?>"></td> </tr> <tr> <td align="right">Email:</td> <td><input type="text" class="textbox1" name="email" size="45" value="<?php echo $email?>"></td> </tr> <tr> <td> </td> <td> <input type="submit" name="acn" value="Update"> </td> </tr> </table> </form> </center> </fieldset> </td> </tr> </table></td> </tr> </table></td> </tr> <?php include('footer.php'); ?>