1. LIMIT will work with the second parameter.
LIMIT 0,3;
LIMIT 3 OFFSET 0; works just as well though. Nothing against it.
2. My mistake, apologizes to anyone who was confused. $count should be a mysql query to retrieve the full count. Personally I use count(*).
3. Sorry.
My script was...
I'm not sure what level of access you have to these machines, but PHP can be run from Command line in Windows (I believe it's native, but don't quote me =P).
It's been a few years, but if I recall correctly the script can be run indefinitely, so you could create a simple "Port Listener" for...
Not sure if this will work, I don't have my IDE with me.
$numPerPage = 15;
//We'll pass the page through our query string. So check it,
//and assign it to a var.
$page = (!empty($_GET['pg'])&&eregi("^[0-9]{1,9}$", $_GET['pg'])) ? $_GET['pg'] : 0;
$start = $page * $numPerPage;
$end = $start +...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.