<?php
echo '
echo '
foreach($user as $key=>$value){
# echo '
echo '
echo "
echo '
echo '
echo ' '.$value['name'].'';
echo ''.$value['pice'].' span>';
$user = array(0=>"缺货", 1=>"有货");
$uu = $value["库存" ];
echo ''.$user[$uu].'';
echo ''.$value['content'].'';
$a = $value['id'];
echo "";
echo '< ;/div>';
echo '';
}
echo '';
echo '
? >
我想echo "<a class='introduce_3' href='shop_list.php?id=$value[$a]' >购买</a>"; 获取出id传到但是shop_list.php这个页面收到他的id,现在报错,Notice: Undefined offset: 1 ,Notice: Undefined offset: 2这些,值也没有传成功,具体写法是啥呢
##
已经搞定
可以通过ajax