Hi,
It makes sense what you are telling. But there is not really an option to help you without knowing your database setup..
But if you have a specific number of max reservations, you could do a select statement for that specific time:
$query = "select * from table where time = $TimeOfInterest";
and then check for the number of rows:
$numrows = mysql_num_rows($query)
if ($numrows < $maxAppointments)
{
$Cell1Content = "<a href=\"appointment.php\">Make a reservation</a>";
}
else
{
$Cell1Content = "Make a reservation";"
}
I know this is not the full answer, but as I said.. It is hard to answer without knowing your setup. Hope this helps you to think about the problem though.
J.