What is the best way to implement simple pagination? Here is the code im using to put the items from the database into a table:
$sql = "SELECT * FROM table WHERE id='id' ";
$result = mysql_query($sql);
while($row=mysql_fetch_array($result))}
echo($row['id']);
echo($row['name']);
}
I just wanted to pageinate this so i would use $_GET['page'] (bla.php?page=1) to set the offset to 10, then (bla.php?page=2) to set it by 20?
Thanks in advanced :)