codeigniter - Mysql: Invalid argument supplied for foreach() - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: codeigniter - Mysql: Invalid argument supplied for foreach() (/showthread.php?tid=58617) |
codeigniter - Mysql: Invalid argument supplied for foreach() - El Forum - 06-30-2013 [eluser]Unknown[/eluser] Code: function countSv_AV_total(){ I'm using this SQL and in the Mysql workbench it's given the right output. Now I want this to get this to the codeigniter Table class. I get an error while foreach is not recieving data: A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: views/welcome_message.php Line Number: 178 Can somebody provide an solution. Thanks in advance |