PHP Arrays - Trying to get property of non-object

前端 未结 3 761
逝去的感伤
逝去的感伤 2021-02-09 13:31

I am still new to PHP so please bear with me.

So I am getting this error: Notice: Trying to get property of non-object on this line:

echo (
            \         


        
3条回答
  •  醉话见心
    2021-02-09 13:40

    Try this...

    foreach($array as $row)
    {
        echo (
            "".
            "".$row['last_name'].     "".
            "".$row['first_name'].    "".
            "".$row['phone_no'].      "".
            "".$row['date_of_birth']. "".
            "".$row['membership'].    "".
            "");
    }
    

提交回复
热议问题