257 |
// Debugging |
// Debugging |
258 |
// printf("sql was: %s<BR>", $sql); |
// printf("sql was: %s<BR>", $sql); |
259 |
|
|
260 |
if ( !$rs = mysql_query ( $sql, $con ) ) { |
if ( !$rs = xx_query ( $sql, $con ) ) { |
261 |
sql_err ( $sql ) And bailout(); |
sql_err ( $sql ) And bailout(); |
262 |
} |
} |
263 |
|
|
297 |
$rowcount = 0; |
$rowcount = 0; |
298 |
|
|
299 |
// Cycle through the result set |
// Cycle through the result set |
300 |
while ( $row = mysql_fetch_array ( $rs ) ) { |
while ( $row = xx_fetch_array ( $rs ) ) { |
301 |
$page_id = $row["page_id"]; |
$page_id = $row["page_id"]; |
302 |
$page_title = Trim($row["page_title"]); |
$page_title = Trim($row["page_title"]); |
303 |
$date_created = substr($row["date_created"], 0, 10); |
$date_created = substr($row["date_created"], 0, 10); |
358 |
// Search statistics |
// Search statistics |
359 |
printf("<tr><td align = \"right\" colspan =\"6\" class=\"backLight\">"); |
printf("<tr><td align = \"right\" colspan =\"6\" class=\"backLight\">"); |
360 |
$records = "record"; |
$records = "record"; |
361 |
printf("<BR>Returned %d ", mysql_num_rows($rs)); |
printf("<BR>Returned %d ", xx_num_rows($rs)); |
362 |
if (mysql_num_rows($rs) != 1) $records .= "s"; |
if (xx_num_rows($rs) != 1) $records .= "s"; |
363 |
printf($records); |
printf($records); |
364 |
printf("."); |
printf("."); |
365 |
|
|