-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page numbers won't show with pagination->render #33
Comments
did you manage to find the issue for this? |
I have not found and answer, and yes, I am still interested in a solution.
THANKS!
Mark Leder
614.560.0529
From: Stefan Gabos ***@***.***>
Sent: Monday, September 6, 2021 1:21 PM
To: stefangabos/Zebra_Pagination ***@***.***>
Cc: gigaboy ***@***.***>; Author ***@***.***>
Subject: Re: [stefangabos/Zebra_Pagination] Page numbers won't show with pagination->render (#33)
did you manage to find the issue for this?
if not i can now look into it if it's still of interest
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#33 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAXRPDL3GVNOJVL562AB6ETUATZ7LANCNFSM5BNYRX4A> .
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> . <https://github.com/notifications/beacon/AAXRPDJSNRS5PTLCVWBQMRDUATZ7LA5CNFSM5BNYRX4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGZ3TGNY.gif>
|
You have your error reporting set to off. ini_set('display_errors', 1);
error_reporting(E_ALL); ...in order to catch errors. With error reporting on, where you do $rows = mysqli_fetch_assoc(mysqli_query($link, 'SELECT COUNT(*) AS rows FROM books')); you would get the the following error Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, bool given in While the error doesn't really tell you everything, it tells you that instead of a result set it returned a boolean value - which means it failed. And it failed because $rows = mysqli_fetch_assoc(mysqli_query($link, 'SELECT COUNT(*) AS `rows` FROM books')); |
Yes, that worked, thanks.
From: Stefan Gabos ***@***.***>
Sent: Tuesday, September 7, 2021 6:17 PM
To: stefangabos/Zebra_Pagination ***@***.***>
Cc: gigaboy ***@***.***>; Author ***@***.***>
Subject: Re: [stefangabos/Zebra_Pagination] Page numbers won't show with pagination->render (#33)
You have your error reporting set to off.
In development you should always have
ini_set('display_errors', 1);
error_reporting(E_ALL);
...in order to catch errors.
With error reporting, where you do
$rows = mysqli_fetch_assoc(mysqli_query($link, 'SELECT COUNT(*) AS rows FROM books'));
you would get the the following row
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, bool given in
While the error doesn't really tell you everything, it tells you that instead of a result set it returned a boolean value - which means it failed. And it failed because rows is a reserved word and you have to use ticks around it like so
$rows = mysqli_fetch_assoc(mysqli_query($link, 'SELECT COUNT(*) AS `rows` FROM books'));
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#33 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAXRPDL43DBNGEO6UGRTVUDUA2FMFANCNFSM5BNYRX4A> .
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> . <https://github.com/notifications/beacon/AAXRPDMYJ4SPSZ5XXY6Y4XTUA2FMFA5CNFSM5BNYRX4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG2CKSVA.gif>
|
Using mysql example, about 600 records, 25 records per page. Using BS5. Latest version downloaded today. Displays forward and back arrows correctly, but no numbers in between. Can move between pages using the arrows. Data records display correctly.
The text was updated successfully, but these errors were encountered: