Need some help....
<?php
// Connect to the database
$db = mysql_connect("localhost","tbirds_site","123456");
mysql_select_db (tbirds_site);
// Ask the database for the information from the squadlinks table
$sql = "SELECT vs, id, date, type, outcome, description, location, score FROM results WHERE id='{$_REQUEST['id']}'";
if (!$result = mysql_query($sql)) {
print "Invalid query ($sql) : " . mysql_error();
exit;
}
while ($row = mysql_fetch_assoc($result)) {
print "<table border= '0' width= '100%'>
<tr><td width= '100%' valign= 'top'>
<font face= 'verdana' color='#000000' size= '2'><B>Game {$row['id']}<br><br>{$row['vs']}</B> <font face= 'verdana' color='#444444' size= '2'> {$row['date']}<br>
<B>Outcome:</B> {$row['outcome']} <B>Score:</B> {$row['score']}<br>
<font face= 'verdana' color='#444444' size= '2'>Game played in {$row['location']}.<br><br>
<font face= 'verdana' color='#444444' size= '2'> {$row['type']} Game<br><br>
<B>Game Description:</B><BR>
{$row['description']}
</a></td>
</tr>
</table>
";
}
?>
How do I make it so that if nothing is displayed.... (like its just the page results.php instead of results.php?id=1) it shows a message like "Please Make A Selection Above" .. please help