Hi there,
i'm very new to this PHP caper.
Now for the question....how would i write an else statment in the following example?
<?
$link = mysql_connect('localhost', '', '');
mysql_select_db('name');
$query = "select * from list WHERE date = '$dates'";
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
echo "<TR>";
echo "<TD><B><FONT SIZE=2 FACE=Verdana><FONT COLOR=\"#000000\">Date: {$row['date']}";
echo "</FONT><FONT COLOR=\"#0000FF\"></FONT></FONT></B></TD>";
echo "</TR>";
}
?>
If the {$row['date']} is not active how do i write the else statement to say "No data available?
Cheers,
rhett