Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 4 Pagination With Join and Where sql
#10

(06-24-2022, 12:28 AM)demyr Wrote: You have defined $total as 20, but how can we know it beforehand?

You can know it by querying the database.

PHP Code:
$total $model->where('offer_status''pending')->countAllResults(); 
Reply


Messages In This Thread
RE: Codeigniter 4 Pagination With Join and Where sql - by kenjis - 06-24-2022, 12:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB