for i <--- 1 step i <--- 2* i while i< n do
for j <--- 1 step j <---2* j while j<n do
if j = 2*i
for k = 0 step k <--- k+ 1 while k < n do
.... CONSTANT NUMBER OF ELEMENTARY OPER
我從MySQL提取一些數據並計算匹配項的出現次數(看起來相當於WHERE foo='bar')。但是,當我通過PHP循環數據時,我的計數遠遠低於mysql中的計數。 MYSQL> SELECT COUNT(foo) FROM database.table WHERE foo='bar'; # PHP
while ($response = mysql_fetch_assoc($surveydata