I can't think of how to word this to search either this site or the manual.
I'm trying to display the results 5-10 of a table.
<?
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM members WHERE status='character' ORDER BY siteusername ASC";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
$i=0;
while ($i < 5) {
$actor=mysql_result($result,$i,"siteusername");
?>
<? echo "$actor" ?>
<?
++$i;
}
?>
That would be my first loop I would like a similar section of code that would display results 5-10 thanks for your help!