$nrs): $maxnow=$nrs-$show; endif; echo "database: $dbname
table: $tablename
"; echo "$query"; echo "
$nrs records
$nf fields

"; echo "\n"; $j=0; while($j<$nf): echo "\n\t"; $j++; endwhile; if ($show_buttons){ echo "\n\t"; } echo ""; $i=0; while($i<$maxnow): if($show_buttons){ echo "\n\n"; echo " \n"; echo " \n"; } echo "\n"; $j=0; $keyind=0; while($j<$nf): $tmp = mysql_result($rs,$i,$fn[$j]); if($tmp==""): echo "\n\t"; else: echo "\n\t"; if($show_buttons){ echo "\n"; } endif; $j++; endwhile; $i++; if ($show_buttons){ echo "\n\t"; endwhile; echo "
$table_font_tag $fn[$j]
  $table_font_tag $tmp \n
\n"; echo "
\n"; echo "\n"; } echo "
\n"; if ($show>0): echo "

\n"; $pshow=$show-$maxrows; if ($pshow<0): $pshow=0; endif; $limit="limit $pshow,$maxrows"; echo "records $pshow - $show"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; endif; if ($i+$show<$nrs): echo "
\n"; $nshow=$i+$show; if ($nshow>$nrs): $nshow=intval($nrs-$i); endif; $limit="limit $nshow,$maxrows"; $t=$nshow+$maxrows; echo "records $nshow - $t"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; endif; ?>