I try to create a block that shows the top news submitters on the last [period time] and it doesn't show anything :S
This is the
SQL that i execute...
$newDayRaw =
(time()-
(86400 *
7));
$newDB =
date("Y-m-d",
$newDayRaw);
$sql =
"SELECT $userscolumn[uid], $userscolumn[uname], $userscolumn[counter], $newscolumn[time] FROM $userstable, $newstable AND $newscolumn[time] LIKE '%$newDB%'";
Where 7 is the number of days.
Thanks for your support :)