--- trunk/rqs.phtml 2004/03/18 20:21:08 71 +++ trunk/rqs.phtml 2004/03/18 20:33:37 72 @@ -37,10 +37,10 @@ // Initialize $subject_id = (int) $subject_id; $exists = 0; -$exists = existsRow($con, "subject", "subject_id", $subject_id); +$exists = existsRow("subject", "subject_id", $subject_id); // If this subject is valid, increment stats -if ($subject_id > 1 && $exists == 1) subLoadStats($con, $subject_id); +if ($subject_id > 1 && $exists == 1) subLoadStats($subject_id); /*********************************** @@ -48,8 +48,8 @@ ***********************************/ // Determine if there are related PageScribe or RQS pages -$other_ps = existsRow($con, "sub_page", "subject_id", $subject_id); -$other_rqs = existsRow($con, "sub_othersub", "subject_id", $subject_id); +$other_ps = existsRow("sub_page", "subject_id", $subject_id); +$other_rqs = existsRow("sub_othersub", "subject_id", $subject_id); // if printer friendly version don't print the TOC @@ -77,14 +77,14 @@ } $sql .= " ORDER BY mi.masterinfotype, i.infotype"; - $rs = xx_query($sql, $con); + $rs = xx_tryquery($sql); $rows = xx_num_rows($rs); // initialize $last_masterinfotype_id = 0; $rowcount = 0; - while ($row = xx_fetch_array ($rs)) { + while ($row = xx_fetch_array ($rs, xx_ASSOC)) { // Fetch information types for this subject $infotype_id = $row["infotype_id"]; @@ -93,11 +93,11 @@ $masterinfotype = $row["masterinfotype"]; if ($last_masterinfotype_id == 0 || ($last_masterinfotype_id != $masterinfotype_id)) { - printf("%s
\n", $subject_id, $masterinfotype_id, $masterinfotype); + printf("%s
\n", $subject_id, $masterinfotype_id, $masterinfotype); printf("