I need help i dont know if its php or mysql problem but it really pisses me off before i move my site to dreamhost the script is working properly but after i moved it i have had 10 problems and i have fixed the 8 others but this 2 errors, i dont know cant find any solution.
this is the error:
Warning: reset() [function.reset]: Passed variable is not an array or object in /home/iagent/iagentz.com/inc/config.inc.php on line 362
and this is the code on line 362
$gpc = ini_get ('magic_quotes_gpc');
while (list ($kk, $vv) = each($frm_cookie))
if (is_array ($vv))
if ($gpc == '1')
$vv = str_replace ('\\'', '\'', $vv);
$vv = str_replace ('\"', '"', $vv);
$vv = str_replace ('\\', '\', $vv);
$vv = trim ($vv);
$vv = strip_tags ($vv);
$frm_cookie[$kk] = $vv;
sad to say but i dont understand it.