我有一个非常不同的问题,我写了一个查询,它应该在页面加载时只执行一次,但它在 chrome 中被执行两次。有没有人对这个问题有任何想法。
我也检查了这个链接,但它对我没有用。
我的代码:
// $rowvo['od_qty']=10;
// $row_1['qty']=20;
$sql = "SELECT qty FROM tbl_size WHERE size_id =".$rowvo['size_id'];
$result = dbQuery($sql);
$row_1 = dbFetchAssoc($result);
$pqty=$row_1['qty']-$rowvo['od_qty'];
echo "Total Quantity Available Before Diduction : ".$row_1['qty'];
echo "Sold Quantity : ".$rowvo['od_qty'];
echo "Remaining Quantity : $pqty";
$sql_qty="update tbl_size set `qty`=$pqty where `size_id`=".$rowvo['size_id'];
echo "$sql_qty<br>";
$result_qty=mysql_query($sql_qty) or die('Error : '.mysql_error());
echo "No of Rows Affected : ".mysql_affected_rows()."<br>".mysql_error(); // 1
网络服务器上的错误日志:
[Wed Oct 09 12:19:30 2013] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[Wed Oct 09 12:19:32 2013] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[Wed Oct 09 12:19:32 2013] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!