--- trunk/admin/subject_stats.phtml 2003/12/05 18:34:18 1 +++ trunk/admin/subject_stats.phtml 2004/03/04 22:43:50 42 @@ -78,8 +78,8 @@ $sql = "SELECT MIN(visit_date) as min_date, MAX(visit_date) as max_date FROM libstats.substats"; - $rs = mysql_query($sql, $con); - $row = mysql_fetch_array ($rs); + $rs = xx_query($sql, $con); + $row = xx_fetch_array ($rs); $min_date = $row["min_date"]; $max_date = $row["max_date"]; @@ -259,13 +259,13 @@ WHERE s.subject_id > 1 ORDER BY s.subject"; - $rs = mysql_query($sql, $con); + $rs = xx_query($sql, $con); // Initialize $rowcount = 0; $sub_loads_total = 0; - while ($row = mysql_fetch_array ($rs)) { + while ($row = xx_fetch_array ($rs)) { // Fetch the stuff $subject_id = $row["subject_id"]; @@ -295,8 +295,8 @@ . "' AND visit_date <= '" . $end_stamp . "'"; - $stats_rs = mysql_query($stats_sql, $con); - $stats_row = mysql_fetch_array ($stats_rs); + $stats_rs = xx_query($stats_sql, $con); + $stats_row = xx_fetch_array ($stats_rs); $sub_loads = $stats_row["sub_loads"]; printf("%d\n", $color, $sub_loads);