Hey sence your online can you help me real quick with ifelse or something that will look at $Second_Class if the value is Select One dont show it, if the value is something else show it. tried several things but I think the problem is in the way I have the echo of this stuff at bottom of php I dont know what Im fighting get errors from all the sample tut Ive found.
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = 'DELETE FROM Registration WHERE Race_Date = \'0000-00-00\'';
mysql_query($query);
$query = 'DELETE FROM Registration WHERE DATE_SUB(CURDATE(),INTERVAL 15 DAY) <= `Race_Date`';
mysql_query($query);
$query="SELECT First_Name, First_Class, Second_Class, Race_Date FROM Registration ORDER BY Race_Date DESC";
$result=mysql_query($query);
$num=mysql_numrows($result);
if ($num==0) {
echo "<b>NO Drivers Registered Yet</b><br>";
}else{
}
mysql_close();
echo "<b>Registered Drivers</b><br>";
$i=0;
while ($i < $num) {
$First_Name=mysql_result($result,$i,"First_Name");
$First_Class=mysql_result($result,$i,"First_Class");
$Second_Class=mysql_result($result,$i,"Second_Class");
$Race_Date=mysql_result($result,$i,"Race_Date");
echo "<b>$First_Name<br>$Race_Date</b><br>$First_Class<br>$Second_Class</b><hr>";
$i++;
}
?>