--- trunk/public_controls.php 2003/12/15 20:58:38 6
+++ trunk/public_controls.php 2004/03/04 22:43:50 42
@@ -50,8 +50,8 @@
WHERE
page_id = " . $page_id;
- $rs = mysql_query($sql, $con);
- $row = mysql_fetch_array ($rs);
+ $rs = xx_query($sql, $con);
+ $row = xx_fetch_array ($rs);
$course_id = $row["course_id"];
$staff_id_created = $row["staff_id_created"];
@@ -150,10 +150,10 @@
WHERE
course_id = " . $course_id . " ORDER BY personnel_id";
- $rs = mysql_query($sql, $con);
+ $rs = xx_query($sql, $con);
// See how many in this record set
- $num_personnel = mysql_num_rows($rs);
+ $num_personnel = xx_num_rows($rs);
if ($num_personnel > 0) {
@@ -162,7 +162,7 @@
printf("Personnel:
\n");
- while ($row = mysql_fetch_array ($rs)) {
+ while ($row = xx_fetch_array ($rs)) {
// Initialize
$last_name = "";
@@ -242,8 +242,8 @@
. $subject_id
. " AND sp.page_id = p.page_id ORDER BY p.page_title";
- $rs = mysql_query($sql, $con);
- while ($row = mysql_fetch_array ($rs)) {
+ $rs = xx_query($sql, $con);
+ while ($row = xx_fetch_array ($rs)) {
$page_id = $row["page_id"];
$page_title = $row["page_title"];
@@ -279,8 +279,8 @@
. $subject_id
. " AND so.othersub_id = s.subject_id ORDER BY s.subject";
- $rs = mysql_query($sql, $con);
- while ($row = mysql_fetch_array ($rs)) {
+ $rs = xx_query($sql, $con);
+ while ($row = xx_fetch_array ($rs)) {
$othersub_id = $row["othersub_id"];
$subject = $row["subject"];
@@ -311,8 +311,8 @@
// Calculate number of elements
$sql = "SELECT COUNT(*) as num_elements FROM element WHERE indent_level < 1 AND page_id = "
. $page_id;
- $rs = mysql_query($sql, $con);
- $row = mysql_fetch_array ($rs);
+ $rs = xx_query($sql, $con);
+ $row = xx_fetch_array ($rs);
$num_elements = $row["num_elements"];
// Calculate midpoint element
@@ -351,7 +351,7 @@
. $page_id
. " AND e.indent_level < 1 ORDER BY e.element_order";
- $rs = mysql_query($sql, $con);
+ $rs = xx_query($sql, $con);
// Build a general ToC anchor
printf("\n");
@@ -366,7 +366,7 @@
$row_num = 0;
- while ($row = mysql_fetch_array ($rs)) {
+ while ($row = xx_fetch_array ($rs)) {
// Check for the midpoint
if ($row_num == $midpoint && $wrap_toc == 1) {
@@ -477,8 +477,8 @@
*/
- $rs = mysql_query($sql, $con);
- while ($row = mysql_fetch_array ($rs)) {
+ $rs = xx_query($sql, $con);
+ while ($row = xx_fetch_array ($rs)) {
$coursesub = $row["coursesub"];
printf("