![]() |
Cannot use object of type CI_DB_mysqli_result as array In codeigniter - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Cannot use object of type CI_DB_mysqli_result as array In codeigniter (/showthread.php?tid=70615) |
Cannot use object of type CI_DB_mysqli_result as array In codeigniter - sanjaya - 05-04-2018 Hello, I have got below error when I create a pagination. Any one can hep me to resolve this error... Model: PHP Code: <?php Controller : PHP Code: <?php View PHP Code: <table id="example1" class="table table-bordered table-striped table-hover"> RE: Cannot use object of type CI_DB_mysqli_result as array In codeigniter - jreklund - 05-04-2018 Use var_dump or print_r on all your variables to see why your input/output contains wrong data. RE: Cannot use object of type CI_DB_mysqli_result as array In codeigniter - InsiteFX - 05-04-2018 Maybe you should be returning a result_array() and not a result() from your model. |