Help with Warning: Variable passed to each() Error

Discussion in 'PHP' started by Thirty5Productions, Nov 15, 2008.

  1. #1
    Warning: Variable passed to each() is not an array or object in html/amazon/script/browsepage.php on line 10

    Warning: Invalid argument supplied for foreach() in html/amazon/script/browsepage.php on line 28

    ===============================================
    Those are the 2 messages im getting in my amazon script that I have, Im pretty new to php , So this is one I really cant figure out or understand that much, I will appreciate any help if possible.


    ================================================
    this is whats on line 10
    while( list($node,$code) = each($nodes) ){

    ================================================
    this is whats on line 28
    foreach($aasort as $key=>$val){

    ============================================

    thank you for all your help .
     
    Thirty5Productions, Nov 15, 2008 IP