我有如下表格:
<form action="campionat.php?competitii='.$idcompetitie.'">
<input type="submit" name="upgrade" value="inainte" />
</form>
开campionat.php
:
if($_POST['upgrade']=="inainte")
{
$lvlupstadion = $levelstadio+1;
$cost = 10000000*$lvlupstadion;
$bugetnou = $buget - $cost;
$q = mysql_query("UPDATE echipa SET levelstadion='".$lvlupstadion."' , buget='".$bugetnou."' WHERE (`echipa`='".$echipa."') AND (`user`='".$id."') AND (`competitie`='".$competitie."')") ;
if (!$q)
{
echo mysql_error($q);
}
echo $lvlupstadion.$bugetnou.$echipa.$id.$competitie;
}
为什么我的数据库没有改变并且我的脚本没有提醒我错误?