Page 754 - 3-2
P. 754
include("config.php");
session_start();
$sql = "SELECT * FROM member";
$result = mysql_query($sql);
if (!$result) {
echo "DB Error, could not list tables\n";
echo 'MySQL Error: ' . mysql_error();
exit;
}
echo "<body>";
echo "<table>";
echo "<caption>rental List</caption>";
echo "<thead>";
echo "<tr>";
echo "<th>day</th>";
echo "<th>Name</th>";
echo "<th>Phone</th>";
echo "</tr>";
echo "</thead>";
echo "<tbody>";
while ($row = mysql_fetch_row($result)) {
echo "<tr>";
echo "<td> {$row[2]}</td>";
echo '<td> <a href="member_info.php?name='.$row[0].' ">'. $row[0] .'</a></td>';
echo "<td> {$row[1]}</td>";
echo "</tr>";
}
mysql_free_result($result);
echo "</tbody>";
echo "<table>";
echo "<body>";
?></h1>
<a href="logout.php"> Logout </a>
- 754 -