Welcome Guest, Not a member yet? Register   Sign In
DB $query->result_array() loop issues
#4

[eluser]zscott[/eluser]
I actually did find the fix, but only after a few hours of converting the code to standard PHP code to further debug it.

Quote: $query2 = $CI->db->query("SELECT * FROM ClassOffering WHERE classID = '".$enrollArr['enrollID'][$x]."'");

should be

Quote: $query2 = $CI->db->query("SELECT * FROM ClassOffering WHERE classID = '".$enrollArr['classID'][$x]."'");

I just had the wrong ID from enrollArr in my WHERE clause........... I swear it's always the simplest crap that gets me going.


Messages In This Thread
DB $query->result_array() loop issues - by El Forum - 07-30-2007, 09:45 AM
DB $query->result_array() loop issues - by El Forum - 09-07-2007, 05:33 PM
DB $query->result_array() loop issues - by El Forum - 09-07-2007, 07:50 PM
DB $query->result_array() loop issues - by El Forum - 09-08-2007, 07:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB