$d = mktime (0,0,0,date("m"),date("d"),date("Y")); $todayatt = $DB_site->query("SELECT attachmentid,counter,filename FROM attachment WHERE dateline >='$d' ORDER BY counter DESC LIMIT 10"); while ($todaytop = mysql_fetch_array($todayatt)): ++$todattopnbsp; $todayattname .= "<a href=attachment.php?s=$session[sessionhash]&attachmentid=$todaytop[attachmentid]>$todaytop[filename]</a><br>"; $todayattcount .= "$todaytop[counter]<br>"; endwhile;
Show Your Support