$urunarray = array();
$urunliste = mysql_query("SELECT * FROM urunler");
while($urunlistev = mysql_fetch_array($urunliste)){
$urunlid=$urunlistev['id'];
array_push($urunarray, "urunid"=>"".$urunlid."", "adet"=>"0", "para"=>"0");
$sepettliste = mysql_query("SELECT * FROM sepet WHERE urunid='".$urunlid"' AND sipariscode!=''");
while($sepettlistev = mysql_fetch_array($sepettliste)){
$urunlsipcode=$sepettlistev['sipariscode'];
$sipliste = mysql_query("SELECT * FROM siparis WHERE code='".$urunlsipcode"'");
$siplistev = mysql_fetch_array($sipliste);
$urunlsubeid=$sepettlistev['subeid'];
if($_SESSION['subesecimi'] == "" || strstr($subesecimi, $urunlsubeid)){
}
}
}
语法错误,意外' =>' (T_DOUBLE_ARROW)
我收到此错误。我认为array_push
不能那样工作,但我怎么能这样添加到数组?