How to print all times, but that one whitch is in datbase with the same name (value) that should be printed has text attached, or value is bolded? Sorry for my bad english ;D
Here are the values
$a = '9.00';
$b = '10.00';
$c = '11.00';
$d = '12.00';
$e = '13.00';
$f = '14.00';
$g = '15.00';
$h = '16.00';
$i = '17.00';
$j = '18.00';
$date = '5/21/2012';
$q = mysql_query("SELECT * FROM times WHERE date='$date'");
while ($row = mysql_fetch_assoc($q)){
$time = $row['time'];
....
}
how to make it? with arrays? or foreach... HELP, please ;D
outcome would be:
9.00 - AVAIBLE -> this one is not in db
10.00 - NOT AVAIBLE -> this one is in database
11.00 - NOT AVAIBLE -> this one is in database
12.00 - NOT AVAIBLE -> this one is in database
.....