Here's the code I'm using:
$limit=3; // number of rows to return
$numresults=mysql("$DBName","SELECT * FROM class_names ");
$numrows=mysql_num_rows($numresults);
// if an offset has not been passed, use 0
if (empty($offset)) {
$offset=0;
}
// get the results
$result=mysql("$DBName","SELECT * FROM class_names limit $offset,$limit");
// display the results
while ($row = mysql_fetch_row($result)) {
$Name=$row[1];
$class_nameID=$row[0];
echo $Name."$nbsp";
}
That get's me my
item1 item2 item3
Now I need to make it repeat starting with the next three returns.
Thanks in advance for the help,
Benjamin