I've never really done this, and Im kinda stuck on it. Can anyone help me on how to paginate this table, with it only showing 10 results at a time.
PHP Code:echo "<table border='1'>
<tr>
<th>Rank</th>
<th>Name</th>
<th>Level</th>
<th>Fame</th>
<th>Job</th>
</tr>";
$number = 1;
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $number; $number = $number+1 . "</td>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['level'] . "</td>";
echo "<td>" . $row['fame'] . "</td>";
echo "<td>" . $jobs[$row['job']] . "</td>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>


Reply With Quote


