Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <?php
- session_start();
- if(isset($_SESSION['icNum'])) {
- $ic = $_SESSION['icNum'];
- } else {
- header('Location:index.php');
- }
- include('connection.php');
- ?>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <link rel="icon" href="Logo/database.jpg" type="image/gif" sizes="16x16">
- <link rel="stylesheet" href="style.css" type="text/css">
- <title>Ed Librray</title>
- </head>
- <body>
- <div class="mid">
- <div class="header">
- <table border="0" width="40%" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td align="right" width="30%"><img src="logo/database.jpg" alt="Logo"></td>
- <td width="2%"></td>
- <td><h1>Welcome To Main Page</h1></td>
- </tr>
- </table>
- </div>
- <div class="nav">
- <?php include('nav.php');
- $select =mysqli_query($conn,'Select * FROM user;');
- $row=mysqli_fetch_array($select);
- ?>
- </div>
- <div class="content">
- <br><br><br><br><br><br>
- <table border="0" width="40%" align="center" cellpadding="7" cellspacing="0">
- <tr align="center">
- <td colspan="2" style="background-color: #0e7abb;"><font color="white"><h2>User Profiles</h2></font></td>
- </tr>
- <?php
- $result=mysqli_query($conn,"SELECT*
- FROM user WHERE icNum='$ic'");
- $row=mysqli_fetch_array($result);
- ?>
- <tr align="center" width="20%">
- <td style="border-bottom: 1px solid #b3b3b3;">Ic Number</td>
- <td width="40%" style="border-bottom: 1px solid #b3b3b3;" ><?php echo $row['icNum']; ?></td>
- </tr>
- <tr align="center">
- <td style="border-bottom: 1px solid #b3b3b3;">Password</td>
- <td style="border-bottom: 1px solid #b3b3b3;"><?php echo $row['password']; ?></td>
- </tr>
- <tr align="center">
- <td style="border-bottom: 1px solid #b3b3b3;">Name</td>
- <td style="border-bottom: 1px solid #b3b3b3;"><?php echo $row['name']; ?></td>
- </tr>
- </table>
- <br><br>
- <table border="0" width="30%" align="center" cellpadding="5" cellspacing="0">
- <tr align="center">
- <td colspan="2" style="background-color: #0e7abb;"><font color="white"><h2>Summary</h2></font></td>
- </tr>
- <tr align="center" width="20%">
- <td>Max</td>
- <td><input class="input" type="text" name="icNum" value="<?php echo $row1['price']; ?>" disabled></td>
- </tr>
- </table>
- </div>
- <div class="footer">
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment