我有未知错误我无法修复此错误任何人都可以帮助我谢谢这是一个Facebook汽车网站
if(isset($_GET['type'])){
if($_GET['type'] == "status"){
$beranda = json_decode(get_html("https://graph.facebook.com/$user->id/statuses?fields=id,message&limit=7&access_token=$token"))->data;
foreach($beranda as $id){
$status .= '
<section class="status">
<section class="image">
<img style="-webkit-border-top-left-radius: 37px;
-moz-border-radius-topleft: 37px;
border-top-left-radius: 37px;
-webkit-border-top-right-radius: 0px;
-moz-border-radius-topright: 0px;
border-top-right-radius: 0px;
-webkit-border-bottom-right-radius: 37px;
-moz-border-radius-bottomright: 37px;
border-bottom-right-radius: 37px;
-webkit-border-bottom-left-radius: 0px;
-moz-border-radius-bottomleft: 0px;
border-bottom-left-radius: 0px;"src="https://graph.facebook.com/'.$user->id.'/picture">
</section>
<section class="name">'.$user->name.'</section>
<section class="message"><span class="color">'.$id->message.'</span></section> //// line 30///
<form action="" method="post">
<input type="hidden" name="id" value="'.$id->id.'">
<input type="submit" name="submit" value="Submit" class="submit"></form>
</section>'; //// line 34///
}
}
答案 0 :(得分:1)
在使用undefined index
之前,您需要设置变量。
context