i have a problem with a script i’m creating. I am using the PHP/SQL Statement ORDER BY. I have a topsite where i use the script below
$sql = "SELECT * FROM topsites WHERE categorie = '".$_GET['c']."' ORDER BY in DESC, out DESC LIMIT ".$perpage."";
And i need to know if there’s a way i can create different pages, say first page is 1-50, second is 50-100
I have searched google for a solution to this question, but i can’t seem to find anything.
The first page will be
LIMIT 0,50,LIMIT 50,50on the second, etc.