Contest List:



".time(); $result= mysql_query($sql,$db); if(!$result){ error_msg("list contest failed, database error."); }else{ while(true){ $list=mysql_fetch_row($result); if(!$list)break; print("".$list[0].""." : from ".date('Y-m-d H:i:s', $list[1])." to ".date('Y-m-d H:i:s', $list[2])); if($list[1]>time()){ print(" Ready"); }else if($list[1]<=time() && $list[2]>=time()){ print(" Running..."); } print("

"); } } ?>