Welcome Guest, Not a member yet? Register   Sign In
Migrating CI3 to CI4, need query->numRows function
#7

Why is it become a problem? If you want to count result from your query, there is count() method from PHP, it's easy to use and don't have to create additional method in database result. Read example below:
PHP Code:
$query $db->query("YOUR QUERY");
$numRows count($query->getResult()); 
Is it not enough for you?
Reply


Messages In This Thread
RE: Migrating CI3 to CI4, need query->numRows function - by adnzaki - 01-01-2021, 01:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB