开始:
$num = 0;
$total = 0;
中间是这样查询的:
sqp="select sum(times) as times from 200309 where ad_id IN (75,1892,1897,1900,1907,1914,1919) and play_date='2003-09-02'"执行查询不贴出来了,结果这么得到:
$num = $DB->f("times");
$total += $num;
echo $total;
exit;echo 没有值,是空的。
就这样了。我找不出原因来。