Here is the code, but over here the warning might occur at a different line...
<head><title>PHP Test</title></head>
<body>
<form enctype="multipart/form-data" method="post" action="<?php echo
$PHP_SELF ?>">
FirstName<br>
<input type="Text" name="Fname" size="25">
<br>
LastName<br>
<input type="Text" name="Lname" size="25">
<br>
MemberNo<br>
<input type="Text" name="MemberNo" size="25">
<br>
status<br>
<input type="Text" name="status" size="25">
<br>
Date<br>
<input type="Text" name="date" size="25">
<br><br>
<input type="submit" name="submit" value="Upload">
</form>
<?php
if ($submit) {
$db = mysql_connect("localhost","test","passwd");
mysql_select_db("test",$db);
$query = "SELECT * FROM tblmember";
$result = mysql_query ($query)
or die ("Select Query failed");
$num_results = mysql_num_rows($result);
// printing HTML result
print "<table>\n";
echo "<table border=1>\n";
echo "<tr><th bgcolor=\"#008080\">First Name </td>
<th bgcolor=\"#008080\">last Name </td>
<th bgcolor=\"#008080\">Member Number </td>
<th bgcolor=\"#008080\">Status</td>
<th bgcolor=\"#008080\">Date </td>
<tr>";
print "\n";
for ($i=0; $i <$num_results; $i++)
{
$row = mysql_fetch_array($result);
echo "<tr><td>";
print ($row["Fname"]);
echo "</td><td>";
print ($row["Lname"] );
echo "</td><td>";
print ($row["Memberno"] );
echo "</td><td>";
print ($row["Status"] );
echo "</td><td>";
print ($row["JoinDate"] );
echo "</td><tr>";
}
echo "</table><br>\n";
}
?>
</body>