Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $q="select count(*) \"total\" from branch where title like '%$search%' ORDER BY title ASC";
- is my query correct? i did not get the pagination though when i hit search. i mean i got all
- the values displayed. i believe i have a correct algo for the pagination coz it displays wen
- user do not hit search. just like this pseudocode
- if user searchbutton is clicked {
- //display all the data thru getting the value
- //being entered in the input field
- }
- else
- //if user just view the page
- {
- //display all the data with the corresponding limits and pagination
- // i already got this part (pagination) here and i applied it in the `if statement`
- //but no pagination really displayed
- }
Advertisement
Add Comment
Please, Sign In to add comment