nedfire

home.php

Dec 21st, 2019
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <?php
  3.  
  4. session_start();
  5.  
  6. if(isset($_SESSION['icNum'])) {
  7. $ic = $_SESSION['icNum'];
  8.  
  9. } else {
  10. header('Location:index.php');
  11. }
  12. include('connection.php');
  13. ?>
  14.  
  15. <html lang="en">
  16. <head>
  17. <meta charset="UTF-8">
  18. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  19. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  20. <link rel="icon" href="Logo/database.jpg" type="image/gif" sizes="16x16">
  21. <link rel="stylesheet" href="style.css" type="text/css">
  22. <title>Ed Librray</title>
  23. </head>
  24. <body>
  25. <div class="mid">
  26. <div class="header">
  27. <table border="0" width="40%" align="center" cellpadding="0" cellspacing="0">
  28. <tr>
  29. <td align="right" width="30%"><img src="logo/database.jpg" alt="Logo"></td>
  30. <td width="2%"></td>
  31. <td><h1>Welcome To Main Page</h1></td>
  32. </tr>
  33. </table>
  34. </div>
  35. <div class="nav">
  36. <?php include('nav.php');
  37. $select =mysqli_query($conn,'Select * FROM user;');
  38. $row=mysqli_fetch_array($select);
  39.  
  40.  
  41.  
  42.  
  43. ?>
  44. </div>
  45.  
  46.  
  47. <div class="content">
  48. <br><br><br><br><br><br>
  49. <table border="0" width="40%" align="center" cellpadding="7" cellspacing="0">
  50. <tr align="center">
  51. <td colspan="2" style="background-color: #0e7abb;"><font color="white"><h2>User Profiles</h2></font></td>
  52. </tr>
  53. <?php
  54. $result=mysqli_query($conn,"SELECT*
  55. FROM user WHERE icNum='$ic'");
  56. $row=mysqli_fetch_array($result);
  57.  
  58. ?>
  59.  
  60. <tr align="center" width="20%">
  61. <td style="border-bottom: 1px solid #b3b3b3;">Ic Number</td>
  62. <td width="40%" style="border-bottom: 1px solid #b3b3b3;" ><?php echo $row['icNum']; ?></td>
  63. </tr>
  64. <tr align="center">
  65. <td style="border-bottom: 1px solid #b3b3b3;">Password</td>
  66. <td style="border-bottom: 1px solid #b3b3b3;"><?php echo $row['password']; ?></td>
  67. </tr>
  68. <tr align="center">
  69. <td style="border-bottom: 1px solid #b3b3b3;">Name</td>
  70. <td style="border-bottom: 1px solid #b3b3b3;"><?php echo $row['name']; ?></td>
  71. </tr>
  72. </table>
  73. <br><br>
  74. <table border="0" width="30%" align="center" cellpadding="5" cellspacing="0">
  75. <tr align="center">
  76. <td colspan="2" style="background-color: #0e7abb;"><font color="white"><h2>Summary</h2></font></td>
  77. </tr>
  78. <tr align="center" width="20%">
  79. <td>Max</td>
  80. <td><input class="input" type="text" name="icNum" value="<?php echo $row1['price']; ?>" disabled></td>
  81. </tr>
  82. </table>
  83.  
  84. </div>
  85. <div class="footer">
  86.  
  87. </div>
  88. </div>
  89. </body>
  90. </html>
Advertisement
Add Comment
Please, Sign In to add comment