= '".$lastday."' order by articlestat_visit desc limit 0,10"); echo ("select * from caaastat_article where articlestat_articletable = 'caaa_article' and articlestat_createdate >= '".$lastday."' order by articlestat_visit desc limit 0,10"); while ($STR_ARRAY = mysql_fetch_array($result)){ $article_id[] = $STR_ARRAY['articlestat_articleid']; } echo count($article_id); ?>