Retrieve data Mysql / Php where date -
hey, i'm wondering how retrieve data database using php top songs today.
right i'm getting top songs using
$result = mysql_query("select tag, count(*) the_tags tags group tag order the_tags desc limit 16");
i storing date in tags table aswell, in format
07-25-2010
so month - day - year
how can have limit results tags date of today?
thanks :)
another way it:
"select tag, count(*) the_tags tags `date` = '" . date('m-d-y') . "' group tag order the_tags desc limit 16"
but prefer use mysql's date (so see artefacto's post)
Comments
Post a Comment