i have pagination and i should call database for two times!
it's meant i should call :
SELECT COUNT(users_id) FROM users
for get all of database rowCount
and in another database fetch i have :
SELECT * FROM users ORDER BY users_id ASC LIMIT 1, 2
for create pagination
is there anyway to create one database call and get the same results ?
i try this:
SELECT COUNT(users_id),* FROM users ORDER BY users_id ASC LIMIT 1, 2
but this, call just 2 (count users_id) and broke pagination :(
Thanks and sorry for my poor english.