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

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -