squawell
06-09-2003, 11:01 AM
i try to add a code in single page :
$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;
the code above i want to show up today attach file download's
top 10 list..but no error and nothing show up?what's wrong?
and if want to add upload username and file size how to change
the code?thankz...........
$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;
the code above i want to show up today attach file download's
top 10 list..but no error and nothing show up?what's wrong?
and if want to add upload username and file size how to change
the code?thankz...........