A
asdfkajsdflkjsadlfkjoewqifoeiwjf
Hi
Does anyone have a swift solution on splitting up mysql results on a
number of pages given the results for the query exceeds a specific
number?
Example query: my $sth=$dbh->prepare("select CITY from MYDB where
COUNTRY='GB' desc");
If above would return more than X results I only display X with an
offset for page number (eg regukar search results solution).
Ive managed to do dodgy solutions where I first go through all results
to check total number, push them into an array and play with them.
Surely there must be a more efficient and server friendly way..
Thanks !
M
Does anyone have a swift solution on splitting up mysql results on a
number of pages given the results for the query exceeds a specific
number?
Example query: my $sth=$dbh->prepare("select CITY from MYDB where
COUNTRY='GB' desc");
If above would return more than X results I only display X with an
offset for page number (eg regukar search results solution).
Ive managed to do dodgy solutions where I first go through all results
to check total number, push them into an array and play with them.
Surely there must be a more efficient and server friendly way..
Thanks !
M