Hi GUYS,
i have an event table that has an expired column..
At the momment i can display a list of events in a html table. In the first column the event name is a hyperlink to another page that has details on that event. Every event name appears as a hyperlink.
I am trying to get it so that events that have either expired or been fully booked do not appear as an hyperlink.
I have Expired, total_Seats, booked_Seats columns in the event table.
This is the code that displays all the event names as hyerplinks so far
while ($row = mysql_fetch_array($result)) {
$sql1 = "select Total_Seats, Booked_Seats FROM event where EventID =".$row[EventID]."";
$result1 = mysql_query($sql1);
$a = ($a+1)%2;
echo '<tr bgcolor='.$color[$a] . ">\n";
#echo ' <td>'.$row['EventName'].'</td>'."\n";
echo '<td><a href="tester(1).php?EventName=' . $row['EventName'] .
'">' . $row['EventName'] .'</a></td>';
echo ' <td>'.$row['Date'].'</td>'."\n";
echo ' <td>'.$row['Venue'].'</td>'."\n";
echo ' <td>'.$row['Town'].'</td>'."\n";