Either the database is down, or the query was invalid.</div>\n";
return;
}
$this->result = $result;
if(!$current_page || $current_page < 0)
$this->page = 1;
else $this->page = $current_page;
if(!empty($results_per_page))
$this->results_per_page = $results_per_page;
$numrows = @mysql_num_rows($this->result);
if(!$numrows) {
echo "
No results for that query.</div>\n";
return;
}
$this->total_pages = ceil($numrows / $this->results_per_page);
# how many pages you WILL get.
} // end constructor function
function print_paged_results() {
/*
echo "Current Page: ". $this->page ."
".
"Results per Page: ". $this->results_per_page ."
";
*/
echo "