View Single Post
Old 04-23-2004, 02:53 PM   #7 (permalink)
metazai
Regular Contributor
 
Join Date: Apr 2004
Location: Orange County, CA
Posts: 124
metazai is on a distinguished road
This is a modified version of the code above, with
PHP Code:
$current_time 
representing an integer interpretation of the timestamp, and
PHP Code:
start_time 
and
PHP Code:
end_time 
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; 

metazai is offline   Reply With Quote