Call to a member function row() on boolean |
I do not see any calls to db->row() in your code, so I suspect the code you're showing is not the trouble spot. That said, the error message "Call to a member function [some_query_builder_method()] on boolean" is an indication that db->get() or db->get_where() has failed and returned FALSE. If those methods succeed they return a CI_DB_result object.
You can, and probably should, always check that you got something usable before proceeding. PHP Code: $query = $this->db->get("tblContents"); |
Messages In This Thread |
Call to a member function row() on boolean - by tenshinadela - 10-05-2018, 02:22 AM
RE: Call to a member function row() on boolean - by dave friend - 10-05-2018, 11:26 AM
RE: Call to a member function row() on boolean - by gelson - 11-23-2020, 04:50 AM
RE: Call to a member function row() on boolean - by InsiteFX - 11-23-2020, 01:02 PM
RE: Call to a member function row() on boolean - by gelson - 11-23-2020, 10:16 PM
RE: Call to a member function row() on boolean - by InsiteFX - 11-24-2020, 02:33 AM
RE: Call to a member function row() on boolean - by gelson - 11-24-2020, 09:10 AM
RE: Call to a member function row() on boolean - by InsiteFX - 11-24-2020, 12:36 PM
|