DATE_SUB(sysdate(),INTERVAL '$dayspans' DAY) AND quand0 "; $query.="ORDER BY (prods.views/((sysdate()-prods.quand)/100000)+prods.views)*prods.voteavg*prods.voteup desc LIMIT $prodlimit"; $result = mysql_query($query); while($tmp = mysql_fetch_assoc($result)) { $top10[] = $tmp; } for($j=0;$j
prodtype platform
prodlimit
backdays

. "> 0): ?> by "> 0): ?> & "> 0): ?> & ">