264 |
$sql .= " ORDER BY " . $orderby . " " . $orderdir; |
$sql .= " ORDER BY " . $orderby . " " . $orderdir; |
265 |
} |
} |
266 |
|
|
267 |
$rs = mysql_tryquery ($sql); |
$rs = xx_tryquery ($sql); |
268 |
|
|
269 |
// Table |
// Table |
270 |
printf("<center><table width=\"90%%\" border =\"1\" bgcolor =\"#ffffff\" cellpadding=\"4\">"); |
printf("<center><table width=\"90%%\" border =\"1\" bgcolor =\"#ffffff\" cellpadding=\"4\">"); |
302 |
$rowcount = 0; |
$rowcount = 0; |
303 |
|
|
304 |
// Cycle through the result set |
// Cycle through the result set |
305 |
while ( $row = mysql_fetch_array ($rs, MYSQL_ASSOC)) { |
while ( $row = xx_fetch_array ($rs, xx_ASSOC)) { |
306 |
$page_id = $row["page_id"]; |
$page_id = $row["page_id"]; |
307 |
$page_title = Trim($row["page_title"]); |
$page_title = Trim($row["page_title"]); |
308 |
$date_created = substr($row["date_created"], 0, 10); |
$date_created = substr($row["date_created"], 0, 10); |
363 |
// Search statistics |
// Search statistics |
364 |
printf("<tr><td align = \"right\" colspan =\"6\" class=\"backLight\">"); |
printf("<tr><td align = \"right\" colspan =\"6\" class=\"backLight\">"); |
365 |
$records = "record"; |
$records = "record"; |
366 |
printf("<BR>Returned %d ", mysql_num_rows($rs)); |
printf("<BR>Returned %d ", xx_num_rows($rs)); |
367 |
if (mysql_num_rows($rs) != 1) $records .= "s"; |
if (xx_num_rows($rs) != 1) $records .= "s"; |
368 |
printf($records); |
printf($records); |
369 |
printf("."); |
printf("."); |
370 |
|
|