Welcome Guest, Not a member yet? Register   Sign In
CI3 num_rows on CI4
#15

Ok, i took a test

PHP Code:
$query $this->db->table('table')
            ->select('field')
            ->where('id_record'$id)
            ->limit(1)
            ->get();

        $result $query->getRow();

        $rows $query->getNumRows(); 

So everything works, but VS Code with php intelephense extension, report error on getNumRows() -> undefined method, I don't know why but if it happens to someone else the problem is here
Reply


Messages In This Thread
CI3 num_rows on CI4 - by serialkiller - 03-26-2022, 07:42 AM
RE: CI3 num_rows on CI4 - by demyr - 03-26-2022, 10:56 AM
RE: CI3 num_rows on CI4 - by GGitzOle - 03-26-2022, 12:54 PM
RE: CI3 num_rows on CI4 - by InsiteFX - 03-27-2022, 12:05 AM
RE: CI3 num_rows on CI4 - by serialkiller - 03-29-2022, 01:58 AM
RE: CI3 num_rows on CI4 - by wdeda - 03-29-2022, 06:09 AM
RE: CI3 num_rows on CI4 - by serialkiller - 03-29-2022, 07:44 AM
RE: CI3 num_rows on CI4 - by ignitedcms - 03-29-2022, 09:57 AM
RE: CI3 num_rows on CI4 - by serialkiller - 03-30-2022, 01:43 AM
RE: CI3 num_rows on CI4 - by InsiteFX - 03-30-2022, 12:03 AM
RE: CI3 num_rows on CI4 - by wdeda - 03-30-2022, 09:31 AM
RE: CI3 num_rows on CI4 - by ignitedcms - 03-30-2022, 10:50 AM
RE: CI3 num_rows on CI4 - by serialkiller - 03-31-2022, 01:37 AM
RE: CI3 num_rows on CI4 - by wdeda - 03-30-2022, 11:58 AM
RE: CI3 num_rows on CI4 - by serialkiller - 04-04-2022, 05:43 AM
RE: CI3 num_rows on CI4 - by JustJohnQ - 04-04-2022, 06:28 AM
RE: CI3 num_rows on CI4 - by kenjis - 04-04-2022, 06:39 PM
RE: CI3 num_rows on CI4 - by wdeda - 04-05-2022, 05:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB