我有一个while循环,当提交结果时,它会自动检查是否有类似的结果并将0.0001添加到结果中,但是当我使用count++时,它会添加1而不是0.0001。
$count = 0.0001;
$sql1 = "select score from CF where trainee = '$selectedoption'
and score = $totalresult";
$score = mysql_query($sql1);
$num2 = mysql_num_rows($score);
while ($num2 > 0)
{
$newtotal = $totalresult + $count;
$sql1 = "select score from CF where trainee = '$selectedoption'
and score = '$newtotal'";
$score = mysql_query($sql1);
$num2 = mysql_num_rows($score);
$count++;
}