i have a problem to show the top article in 7 days..
$arc=mysql_query("select *from arc_news where status='aktif' and date IN (SELECT DATE_(NOW(), INTERVAL -14 DAY)) order by counter desc limit 4");
while($a=mysql_fetch_array($arc)){
$banner=mysql_query("select * from arc_sub where id_sub='$a[id_sub]'");
while($b=mysql_fetch_array($banner)){
echo"
<tr>
<td class='ling'><b style='color:GoldenRod'>•</b></td><td><h1><a href='article".$bb."-$a[id_news]-$b[id_banners]-$a[judul_seo].html' title='$a[judul]' target='_blank'>$a[judul]</a></h1></td>
</tr>";
}
}
i want to show the best article base on the 'counter' every week, limit 4 ?
but unfortunately my script didn't work at all,, what's wrong with my query?