bcit-ci / CodeIgniter

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
18.27k stars 7.6k forks source link

mysqli num_rows always return 0 #6246

Open Falatulima opened 1 year ago

slimdestro commented 1 year ago

I have added few tests. it returns exact number of rows in Table.

$query = $this->db->get($tableName);
$num_rows = $query->num_rows();

num_rows_validate_3 num_rows_validate_2 num_rows_validate_1