are the for the corresponding table/fields values in your database? Also check on the source of the printed html page (even if blank) and see what is there.
Try running this version of your script:
<html>
<body>
<?php
error_reporting(E_ALL);
$con = mysql_connect("localhost","john","1234");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("mydb", $con);
$result = mysql_query("SELECT * FROM users");
echo "<table border='1'>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>";
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "<tr>";
echo "<td>" . $row['FName'] . "</td>";
echo "<td>" . $row['LName'] . "</td>";
echo "</tr>";
}
echo "</table>";
echo mysql_errno($con) . ": " . mysql_error($con) . "\n";
mysql_close($con);
?>
</body>
</html>
Post back any errors you may find.
PS: As is, your script should at the very least print the column names "Firstname" and "Lastname", if not, you may not have php installed or there could be a related configuration issue.