$query = "UPDATE $pricetable
SET $pricename
=$pricename+'$price' WHERE $priceusername
='$user' and $priceti
='$payId'";//($pricename`为用户账户余额的字段名)
echo $query;
$result = mysqli_query($con,$query);
if ($result)
echo "<p>充值成功!</p>";
else
echo "<p>充值失败。</p>";
这种更新字段数据余额怎么写。刷新网页就加额度,刷新就加额度,如何写php语句只加一次重复动作就不加了
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…