A script lists 9 records per page instead of 10. I am unable to put my finger on the right variable. I have tried few alteration, but none worked.
[code] // Get query without limiting to current page
$sql->query($query);
$num_rows = $sql->nr();
$q_start_rec = ($s_page - 1) * 10;
if ($q_start_rec < 0) $q_start_rec = 0;
$query .= "LIMIT " . $q_start_rec . ", " . $s_records;
$query .= ";";
// Limit results to current page only
$sql->query($query);
if ($s_debug) {
echo ("<textarea rows=10 cols=80>$query</textarea>");
?>
Found: <? echo ($num_rows); ?> records
"); Page_Navigator($s_page, $Number_of_Pages, $s_string, true); ?> <? while ($sql->next()) { $row = $sql->record; $cn = 0; $ft = 0; $x++; if(($x < $BreakLoop)) continue; //if( ($BreakLoop==$s_records)&& $x>$s_records)break; if($x + 1 > ($BreakLoop + $s_records)) { break; } //echo $x; if($ev) echo "
"; $ev++; //echo $c."
"; [/code]