This is working in the fassion of a guest book, and on the same page as the form is a specific display of entries for that day. When one leaves the page and returns all that is left is blank rows, how can I keep the data in the rows? Here is the script portion:
<?php
if ($result) {
echo "<table align=center border=0 cellspacing='1' cellpadding='2' bordercolor=\"#000000\" width=\"550\"><tr>
<td align=center bgcolor=\"#9AB4C0\">Name</td>
<td align=center bgcolor=\"#A2C1AB\">Remarks</td>
</tr>
<td>";
while($r = mysql_fetch_array($result)) {
$name = $r["Name"];
$remarks = $r["Remarks"];
echo "<tr>
<td bgcolor=\"#9AB4C0\">$name</td>
<tr> <td colspan=4 bgcolor=\"#A2C1AB\">$remarks</td>
</tr>
<td>";
} //End while loop
echo "</table>";
} //End if true
else { //Begin if false
echo "error.";
} //end if false
mysql_free_result($result);
?>
Much thanks in advance!
Jim
<?php
if ($result) {
echo "<table align=center border=0 cellspacing='1' cellpadding='2' bordercolor=\"#000000\" width=\"550\"><tr>
<td align=center bgcolor=\"#9AB4C0\">Name</td>
<td align=center bgcolor=\"#A2C1AB\">Remarks</td>
</tr>
<td>";
while($r = mysql_fetch_array($result)) {
$name = $r["Name"];
$remarks = $r["Remarks"];
echo "<tr>
<td bgcolor=\"#9AB4C0\">$name</td>
<tr> <td colspan=4 bgcolor=\"#A2C1AB\">$remarks</td>
</tr>
<td>";
} //End while loop
echo "</table>";
} //End if true
else { //Begin if false
echo "error.";
} //end if false
mysql_free_result($result);
?>
Much thanks in advance!
Jim