257 |
$sql .= " ORDER BY " . $orderby . " " . $orderdir; |
$sql .= " ORDER BY " . $orderby . " " . $orderdir; |
258 |
} |
} |
259 |
|
|
260 |
$rs = mysql_tryquery($sql); |
$rs = xx_tryquery($sql); |
261 |
|
|
262 |
// Table |
// Table |
263 |
printf("<center><table width=\"90%%\" border =\"1\" bgcolor =\"#ffffff\" cellpadding=\"4\">"); |
printf("<center><table width=\"90%%\" border =\"1\" bgcolor =\"#ffffff\" cellpadding=\"4\">"); |
281 |
$rowcount = 0; |
$rowcount = 0; |
282 |
|
|
283 |
// Cycle through the result set of unique reference id's. |
// Cycle through the result set of unique reference id's. |
284 |
while ( $row = mysql_fetch_array ($rs, MYSQL_ASSOC)) { |
while ( $row = xx_fetch_array ($rs, xx_ASSOC)) { |
285 |
$resource_id = $row["resource_id"]; |
$resource_id = $row["resource_id"]; |
286 |
$title = Trim($row["title"]); |
$title = Trim($row["title"]); |
287 |
$publisher = Trim($row["publisher"]); |
$publisher = Trim($row["publisher"]); |
337 |
// Search statistics |
// Search statistics |
338 |
printf("<tr><td align = \"right\" colspan =\"4\" class=\"backLight\">\n"); |
printf("<tr><td align = \"right\" colspan =\"4\" class=\"backLight\">\n"); |
339 |
$records = "record"; |
$records = "record"; |
340 |
printf("<BR>Returned %d ", mysql_num_rows($rs)); |
printf("<BR>Returned %d ", xx_num_rows($rs)); |
341 |
if (mysql_num_rows($rs) != 1) $records .= "s"; |
if (xx_num_rows($rs) != 1) $records .= "s"; |
342 |
printf($records); |
printf($records); |
343 |
printf("."); |
printf("."); |
344 |
|
|