163 |
// Debugging |
// Debugging |
164 |
// printf("sql was: %s<BR>", $sql); |
// printf("sql was: %s<BR>", $sql); |
165 |
|
|
166 |
if ( !$rs = mysql_query ( $sql, $con ) ) { |
if ( !$rs = xx_query ( $sql, $con ) ) { |
167 |
sql_err ( $sql ) And bailout(); |
sql_err ( $sql ) And bailout(); |
168 |
} |
} |
169 |
|
|
203 |
$rowcount = 0; |
$rowcount = 0; |
204 |
|
|
205 |
// Cycle through the result set |
// Cycle through the result set |
206 |
while ( $row = mysql_fetch_array ( $rs ) ) { |
while ( $row = xx_fetch_array ( $rs ) ) { |
207 |
$page_id = $row["page_id"]; |
$page_id = $row["page_id"]; |
208 |
$page_title = Trim($row["page_title"]); |
$page_title = Trim($row["page_title"]); |
209 |
$date_created = substr($row["date_created"], 0, 10); |
$date_created = substr($row["date_created"], 0, 10); |
261 |
// Search statistics |
// Search statistics |
262 |
printf("<tr><td align = \"right\" colspan =\"6\" class=\"backLight\">"); |
printf("<tr><td align = \"right\" colspan =\"6\" class=\"backLight\">"); |
263 |
$records = "record"; |
$records = "record"; |
264 |
printf("<BR>Returned %d ", mysql_num_rows($rs)); |
printf("<BR>Returned %d ", xx_num_rows($rs)); |
265 |
if (mysql_num_rows($rs) != 1) $records .= "s"; |
if (xx_num_rows($rs) != 1) $records .= "s"; |
266 |
printf($records); |
printf($records); |
267 |
printf("."); |
printf("."); |
268 |
|
|