Guest User

this-one

a guest
Jan 30th, 2014
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. $q="select count(*) \"total\" from branch where title like '%$search%' ORDER BY title ASC";
  2.  
  3. is my query correct? i did not get the pagination though when i hit search. i mean i got all
  4. the values displayed. i believe i have a correct algo for the pagination coz it displays wen
  5. user do not hit search. just like this pseudocode
  6.  
  7. if user searchbutton is clicked {
  8. //display all the data thru getting the value
  9. //being entered in the input field
  10. }
  11. else
  12. //if user just view the page
  13. {
  14. //display all the data with the corresponding limits and pagination
  15. // i already got this part (pagination) here and i applied it in the `if statement`
  16. //but no pagination really displayed
  17. }
Advertisement
Add Comment
Please, Sign In to add comment