Re: Sorting MYSQL results Paging and column heads
| From: | Chris | Date: | Mon, 05 Oct 2009 22:11:10 +0000 |
| Subject: | Re: Sorting MYSQL results Paging and column heads | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46566@lists.php.net to get a copy of this message | ||
Edward Brookhouse wrote:
Hi All, I am working on a PHP page to display results from a MySQL db and I am having a problem getting my results to page properly. When the page loads, it looks fine, but hitting next/previous does not change the data?<snip>
db_connect_ecelerity(DBUSER, DBUSERPW); $query1 = "select * FROMIs it running this query or the next one?bouncelogORDER BYinsert_dateDESC LIMIT $offset, $rowsPerPage";
if(!$rs = mysql_query("SELECT * FROM bouncelog ORDER BY $col $dir LIMIT 500")) {
echo "Cannot parse query";
There's only a limit here, no offset attached.
--
Postgresql & php tutorials
http://www.designmagick.com/