ThingEngineer / PHP-MySQLi-Database-Class

Wrapper for a PHP MySQL class, which utilizes MySQLi and prepared statements.
Other
3.29k stars 1.35k forks source link

method paginate() get all row? #927

Open kythuatwebso opened 3 years ago

kythuatwebso commented 3 years ago

Hi Guys,

I'm can use method ->paginate() to get all row?

case: i am user select limit view [10, 20, all] item. when select view all but use method paginate()

Thanks

oxcakmak commented 3 years ago

https://www.paste.org/111959 You can look at the bottom https://oxcakmak.com/blog/php-bir-kutuphane-ile-tanisin---pdodb

kythuatwebso commented 3 years ago

@oxcakmak image

I don't see any difference?

How to get all the rows in the paginate () method

oxcakmak commented 3 years ago

If you are going to do paging, you can use the code I wrote

kythuatwebso commented 3 years ago

Yes, I paginated success. But I want question is how to use method ->paginate() to get all row in database. (same is method ->get() but not use ->get() )

kythuatwebso commented 3 years ago

I have an idea which is write few of 9.

exp:

$db->pageLimit = 999999999999; $db->paginate($table, $page);