uramagget Posted December 26, 2007 Share Posted December 26, 2007 foreach ($where_array as $key => $value) { if ($row[$table."_".$key]!=$value) { $included=false; } } Basically, my problem is that is shows a warning about an invalid argument supplied. I have no problem dealing with warnings, but since this will be a public script, well.. yes.. I require assistance, please. Link to comment https://forums.phpfreaks.com/topic/83291-solved-invalid-argument-supplied-for-foreach/ Share on other sites More sharing options...
kenrbnsn Posted December 26, 2007 Share Posted December 26, 2007 It's telling you that the variable $where_array is not an array. Where is this being set? put <?php echo '<pre>' . print_r($where_array,true) . '</pre>'; ?> Just before the foreach to see what's in the variable. Ken Link to comment https://forums.phpfreaks.com/topic/83291-solved-invalid-argument-supplied-for-foreach/#findComment-423782 Share on other sites More sharing options...
uramagget Posted December 27, 2007 Author Share Posted December 27, 2007 Nevermind, it seems I have fixed this on my own somehow by modifying a mySQL table. Thanks anyway! Link to comment https://forums.phpfreaks.com/topic/83291-solved-invalid-argument-supplied-for-foreach/#findComment-423800 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.