cleared: one FOREACH works - other one not. Do you see why? - 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: cleared: one FOREACH works - other one not. Do you see why? (/showthread.php?tid=27516) |
cleared: one FOREACH works - other one not. Do you see why? - El Forum - 02-13-2010 [eluser]Jan_1[/eluser] Trying to display how many fields in userprofil and in groupprofil are filled. First one works. Second doesn't. Error-Message is "array_values(): The argument should be an array" and "Invalid argument supplied for foreach()" Could you please have a look? Thank you!!! This one works: Code: $query = $this->db->query('SELECT * FROM user_profile'); This one does not work: Code: $query = $this->db->get('group_profil'); cleared: one FOREACH works - other one not. Do you see why? - El Forum - 02-13-2010 [eluser]Jan_1[/eluser] Could not work if it does not get a valid id. :red: |