mysql - Pagination and form tag issue -


i have 2 .php files: trialform.php , trialaction.php

user chooses search terms using <select> tags on trialform.php, , information goes trialaction.php has mysql $query=select * ... contains variables $expression1 etc. (depending on user's choice).

it works fine. wanted implement pagination source query works first pagination page, when click on second , third...it not show results. problem $query=select * ... refers trialform.php, , not exist after user pressed "submit".

do have split $_post code section in separate .php file in order able use pagination , <form>?

this performed parameters on subsequent pages passing updates page number (gets start parameter) , limit can seen here http://dev.sencha.com/deploy/ext-4.0.0/examples/grid/paging.html

and viewing http headers in fiddler. page 4 get

get /forum/topics-browse-remote.php?_dc=1368498808032&page=4&start=150&limit=50

and page 5 is

get /forum/topics-browse-remote.php?_dc=1368498808032&page=5&start=200&limit=50

so subsequent pages (prior or next) know start. naturally parameters fed select statement such select * employee limit 200,50 # start,limit


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -