QUOTE(Martyr2 @ 30 Nov, 2008 - 10:50 PM)

Well remember that foreach iterates through arrays. The first argument is suppose to be an array. In your first example you actually have a two dimensional array which is fine, if that value in the two dimensional array was itself an array. Some how I doubt this is the case.
<-- Snip -->
Actually, the value is an array.
CODE
$skills = $db->pQuery("SELECT * FROM skills WHERE prof_id = '$prof'");
// Resort the array
foreach ($skills as $i => $v)
{
$out[$v[skl_lvl]] = $v;
//Execute second Query
$out[$v[skl_lvl]]['schems'] = $db->pQuery("SELECT * FROM emu_schems WHERE prof_id = '$prof' AND skl_lvl = '$v[skl_lvl]'");
pQuery is a function in my class file that returns the results in an array, runs stripslashes, etc. so i don't have to code all that stuff for every page I create.
To reiterate, I only get this error on my desktop. The code executes perfectly on the live server which is why I think it may be some sort of config error on my desktop.