 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
wmak
Joined: 24 Jan 2007 Posts: 2
|
Posted: Wed Jan 24, 2007 12:25 pm Post subject: Pager (with search variable in the query) |
|
|
Hi all,
I like to use the pager to do the pagination with the $search_user variable in my query. But when I jump to another page, it cant get the $search_user variable. And it gets all the data. Is there a way to append it in the URL after the pageID.
For example,
$query = Select * from Company where User = '$search_user';
$row = $dbh->getAll($query);
$params = array("mode" => "Sliding",
"PerPage" => 20,
"append" => true,
"clearIfVoid" => false,
"useSessions" => true,
"closeSession" => true,
"itemData" => $row,
"showAllText" => "All"
);
$search_user is passed after the form is submitted
Is the following possble? How?
http://www.company.com/showuser.php?pageID=2&User=$search_user
If not, any other ways?
Thanks in advance,
Wilson |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
|
| Back to top |
|
 |
wmak
Joined: 24 Jan 2007 Posts: 2
|
Posted: Thu Jan 25, 2007 5:06 am Post subject: |
|
|
Got it! Thank You!
I tried to look for the info for the pager packer here before. But I didnt awear that pager is under the HTML package.
Thanks anyway!
Wilson |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Thu Jan 25, 2007 11:43 am Post subject: |
|
|
| wmak wrote: | | I tried to look for the info for the pager packer here before. But I didnt awear that pager is under the HTML package. |
You can click on the "Documentation" tab on Pager package page (http://pear.php.net/package/Pager) and then on the "End-user Documentation" to get directly to the manual pages for Pager. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|