How do I get the total amount from a column? |
Hi,
I'm upgrading my CI3 model to CI4, but things are not working well. CI 3 PHP Code: // Sales CI 4 PHP Code: public function total_weekly_sales() Code: Object of class CodeIgniter\Database\MySQLi\Result could not be converted to string.
The get() method returns an instance of the Result class.
Generating Query Results (01-31-2022, 05:28 AM)castle Wrote: Hi, Code: ->get()->getResult() // return array of object |
Welcome Guest, Not a member yet? Register Sign In |