SioSio,
I just realized that, $_SESSION['row_count'] = 5, when I click the SEARCH button. 5 matching rows found.
Then when I click PAGE 2 on pagination, the $_SESSION['row_count'] = 0, why is that ? It should stay 5. i am not overwriting the variable value either.
This is the reason why, when I click PAGE 2 or PAGE 3 on the PAGINATION section, I see zero results or rows shown. No rows get shown beyond...
User Profile
Collapse
-
Why WHILE LOOP Fails After One Execution ?
Hiya,
Php gurus, can you tell me is this query ok to get row count ? It works here:
The rows_count() function uses the above query.Code:$query_2 = "SELECT * FROM users WHERE first_name = ? AND marital_status = ? LIMIT $offset,$last_row_on_page";
Then it forwards you to the fetch_rows() function that fetches the rows and displays them in a pagination way to you.
...
No activity results to display
Show More
Leave a comment: