<?php
echo '<div class="content_banner3">';
echo '<ul>';
foreach($user as $key=>$value){
echo '<li>';
echo '<div class="content_banner4_img">';
echo "<img src='".$value['img']. "' />";
echo '</div>';
echo '<div class="content_banner4_con">';
echo '<span class="tit">'. $value['name'].'</span>';
echo '<span class="pic">'.$value['pice'].'</span>';
$user = array(0=>"품절", 1=>"재고 있음");
$uu = $value["stock"];
echo '<span class="con" >'.$user[$uu].'</span>';
echo '<span class="introduce_2">'.$value['content'].'</span>';
$a = $value['id'];
echo "<a class='introduce_3' href='shop_list.php?id=$value[$a]' >buy</a>";
echo '</div>';
echo '</li>';
}
echo '</ul>';
echo '<div>';
?>
我是想echo "<a class='introduce_3' href='shop_list.php?id=$value[$a]' >구매</a>"; 获取udeid传到shop_list.php这个页face收到他的id 但是现在报错,주의사항: 정의되지 않은 오프셋: 1 ,주의사항: 정의되지 않은 오프셋: