if (!$offset || $offset<0) $offset = 0;
$diff = 10;
$r = mysql_query("SELECT count(*) FROM tblinstallationen");
$anz = mysql_result($r,0);
if (!$offset || $offset<0) { $offset = 0; $disabled[prev] = TRUE; }
if ($offset>$anz-10) { $offset = $anz-10; $diff = $anz % 10;$disabled[next] = TRUE; }
$r = mysql_query("SELECT * FROM tblinstallationen LIMIT $offset,$diff");
$diff = 10;
$r = mysql_query("SELECT count(*) FROM tblinstallationen");
$anz = mysql_result($r,0);
if (!$offset || $offset<0) { $offset = 0; $disabled[prev] = TRUE; }
if ($offset>$anz-10) { $offset = $anz-10; $diff = $anz % 10;$disabled[next] = TRUE; }
$r = mysql_query("SELECT * FROM tblinstallationen LIMIT $offset,$diff");
Kommentar