您好,欢迎访问一九零五行业门户网

为什么$up只能到1,该如何解决

为什么$up只能到1
$up=0;
while(@$_get['action']=='up'){
$up++;
$up_sql=update message set up='$up' where id=$_get[id];
if(mysql_query($up_sql)){
echo $up;
exit('');
}
}
------解决方案--------------------
$up_sql=update message set up=up+1 where id=$_get[id];
其它类似信息

推荐信息