Hello fans. Where is the error in this ?
I get the following error
Parse error: parse error in pathhere/adis.php on line 9
<?php
require("enc.inc");
// If $offset is set below zero (invalid) or empty, set to zero
if (empty($offset) || $offset < 0) {
$offset=0;
}
// Set $limit. $limit = Max number of results per 'page'
// Set $totalrows = total number of rows that unlimited query would return
// (total number of records to display across all pages)
$limit = 20;
$numresults = mysql_query("SELECT count(*) FROM $usertable", $db);
$totalrows = mysql_num_rows($numresults);
// Set $begin and $end to record range of the current page
$begin =($offset+1);
$end = ($begin+($limit-1));
if ($end > $totalrows) {
$end = $totalrows;
}
// Display result information.
echo "There are <b>$totalrows</b> results.<br>n";
echo "Now showing results <b>$begin</b> to <b>$end<b/>.<br><br>n";
?>
thx for help 🙂