php返回值計算公式?
$sql="SELECT COUNT(*) AS count FROM mark WHERE hID = '$hid'";
$result = mysql_fetch_array(mysql_query($sql));
$count = $result['count'];
$count++;
$numOfScore = $count;$count = mysql_result(mysql_query("SELECT COUNT(*) AS count FROM mark WHERE hID = $hid"),0);
$numOfScore = $count + 1;
下一篇如何用PHP寫應用程序