<?php session_start(); if(!session_is_registered(username)) { header("location:login.php"); } include("header.php"); include("databases.php"); echo "<body>"; echo "<center>"; echo "<h1>Login System Information</h1>"; echo "<table border='1'> <tr class=\"table_head\"> <th class=\"number\" style=\"min-width:20px;\">#</th> <th> Name </th> <th> UserName </th> <th> Password </th> <th> Status </th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td class=\"number\"> " . $row['num'] . " </td>"; echo "<td class=\"center\"> " . $row['name'] . " </td>"; echo "<td class=\"center\"> " . $row['username'] . " </td>"; echo "<td class=\"center\"> " . $row['password'] . " </td>"; echo "<td class=\"center\"> " . $row['status'] . " </td>"; echo "</tr>"; } echo "</table>"; mysql_close($database); echo "</center>"; echo "</body>"; echo "</html>"; ?>