--- trunk/admin/info_structure.phtml 2004/03/18 20:21:08 71
+++ trunk/admin/info_structure.phtml 2004/03/18 20:33:37 72
@@ -17,6 +17,16 @@
printf("\n");
+// Default access settings
+$sess_time_human = "";
+$sess_staff_account = "";
+$sess_staff_id = 0;
+$sess_access_level = 0;
+$sess_access = "";
+$sess_last_name = "";
+$sess_first_name = "";
+
+
// Page header
require_once ($GLOBAL_ADMIN_HEADER);
@@ -56,14 +66,13 @@
mastersubject
FROM mastersubject
ORDER BY mastersubject";
-
- $rs = xx_query($sql, $con);
+ $rs = xx_tryquery($sql);
// Initialize counter
$rowcount = 0;
// Cycle through the result set
- while ( $row = xx_fetch_array ( $rs ) ) {
+ while ( $row = xx_fetch_array ($rs, xx_ASSOC)) {
$mastersubject_id = Trim($row["mastersubject_id"]);
$mastersubject = Trim($row["mastersubject"]);
@@ -89,11 +98,11 @@
. $mastersubject_id
. " ORDER BY m.masterinfotype, i.infotype";
- $sub_rs = xx_query($sub_sql, $con);
+ $sub_rs = xx_tryquery($sub_sql);
$sub_rowcount = 0;
// Cycle through the result set
- while ( $sub_row = xx_fetch_array ( $sub_rs ) ) {
+ while ( $sub_row = xx_fetch_array ($sub_rs, xx_ASSOC)) {
$masterinfotype = Trim($sub_row["masterinfotype"]);
$infotype = Trim($sub_row["infotype"]);