当前位置:Gxlcms > PHP教程 > 为何所有按钮只控制同一行数据?

为何所有按钮只控制同一行数据?

时间:2021-07-01 10:21:17 帮助过:7人阅读

为啥所有按钮只控制同一行数据???
为啥所有按钮只控制同一行数据?应该怎么解决啊。





Insert title here





$db = mysql_connect('localhost','root','root');
mysql_select_db('ec',$db);
if (!$db)
{
die('Could not connect: ' . mysql_error());
}
$result = mysql_query("select * from goods");
echo "











";
$n = 0;
while($row = mysql_fetch_array($result))
{
echo "";
echo "";
echo "";
echo "";

人气教程排行

GoodsID BarCode GoodsName Category Specifications Manufacturers Numbers Instructions Pictures Update Delete
" . $row['id'] . "" . "" . "" . "" . "