欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

帮忙看下为啥不能转到

程序员文章站 2022-06-11 10:30:21
...
$sql="select * from tb_order where orderusernc='$unc' order by id desc limit $kaishi,$pagesize";//取得记录从计算出的初始值开始,一共$pagesize条
$result=mysql_query($sql);//取得结果
while($row=mysql_fetch_array($result))
{
echo "\n";
echo "
".$row['orderno']."
";
echo "
".$row['orderusernc']."
";
echo "
".$row['username']."
";
echo "
".$row['address']."
";
echo "
".$row['yb']."
";
echo "
".$row['tel']."
";
echo "
".$row['tt']."
";
echo "
".$row['goodsprice']."
";
echo "
".$row['rectype']."
";
echo "
".$row['paytype']."
";
echo "
".$row['addtime']."
";
echo "
付款
";
echo "\n";
}
点付款依然还在该页面


回复讨论(解决方案)

$sql="select * from tb_order where orderusernc=' $unc' order by id desc limit $kaishi,$pagesize";
查询需要参数 $unc

页面中只有这样的连接
echo "