This is a modified version of the code above, with
representing an integer interpretation of the timestamp, and
and
representing integer values in the database. I know that part works, as I've echo-ed it seperately. The problem is that when I echo any of the variables created, they don't serve up an error, they just don't serve up anything. Any ideas what I'm missing here?
PHP Code:
$rs = mysql_query($query,$conn);
while($row=mysql_fetch_array($rs)){
if ($current_time >= $row[start_time] && $current_time < $row[end_time]) {
$now_counting = true;
}
if($now_counting == true) {
$time_label[$counter] = $row[time_label];
$name[$counter] = $row[name];
$info_link[$counter] = $row[info_link];
$image[$counter] = $row[image];
$counter++;
}
if($counter > 7)
break;
}