Hello, I have the same files on 2 servers, one server is running php 4.3.2 and the code works. The newer server is running 4.4.3 and the same code does not work. The code is as follows: foreach ($fav_people as $name=>$more) { foreach ($more as $people_id=>$value) { if ($people_id != 0) { $INSERT = "INSERT INTO favorites (user_id, fav_type, id) VALUES ('$_USER[user_id]', '2', '$people_id')"; $iresult = mysql_query($INSERT); } } On the newer server, it gives the following error: Warning: Invalid argument supplied for foreach() in _db_functions.php on line 157 This warning shows up 4 times for that line. Anyone have any suggestions on how to troubleshoot this? Thanks in advance. ambition13