233 |
//printf("sql was: %s<BR>", $sql); |
//printf("sql was: %s<BR>", $sql); |
234 |
|
|
235 |
|
|
236 |
if ( !$rs = mysql_query ( $sql, $con ) ) { |
if ( !$rs = xx_query ( $sql, $con ) ) { |
237 |
sql_err ( $sql ) And bailout(); |
sql_err ( $sql ) And bailout(); |
238 |
} |
} |
239 |
|
|
259 |
$rowcount = 0; |
$rowcount = 0; |
260 |
|
|
261 |
// Cycle through the result set of unique reference id's. |
// Cycle through the result set of unique reference id's. |
262 |
while ( $row = mysql_fetch_array ( $rs ) ) { |
while ( $row = xx_fetch_array ( $rs ) ) { |
263 |
$resource_id = $row["resource_id"]; |
$resource_id = $row["resource_id"]; |
264 |
$title = Trim($row["title"]); |
$title = Trim($row["title"]); |
265 |
$publisher = Trim($row["publisher"]); |
$publisher = Trim($row["publisher"]); |
315 |
// Search statistics |
// Search statistics |
316 |
printf("<tr><td align = \"right\" colspan =\"4\" class=\"backLight\">\n"); |
printf("<tr><td align = \"right\" colspan =\"4\" class=\"backLight\">\n"); |
317 |
$records = "record"; |
$records = "record"; |
318 |
printf("<BR>Returned %d ", mysql_num_rows($rs)); |
printf("<BR>Returned %d ", xx_num_rows($rs)); |
319 |
if (mysql_num_rows($rs) != 1) $records .= "s"; |
if (xx_num_rows($rs) != 1) $records .= "s"; |
320 |
printf($records); |
printf($records); |
321 |
printf("."); |
printf("."); |
322 |
|
|