Howdy again.. its been awhile.. so here goes.
I want to do a Querry like this.
PHP Code:SELECT * FROM 'uploads' GROUP BY 'Name' HAVING Date = MAX(Date)
and have the output be like this (IE: Having the Dates displayed be the NEWEST entry)Code:Here is the Upload DB. ID Name Doc Date 1 Fruki index.php 2002-07-01 2 Imex core.php 2002-07-01 3 Imex admin.php 2002-07-01 4 Imex admin.php 2002-07-01 5 Sani code_3.php 2002-07-02 6 Fruki index.php 2002-07-03 7 Sani index.php 2002-07-04
Ok, I have tried this exact querry in many different ways and all I get is the FIRST entry with the name. When I want it to display the Last Entry that was submited. Can anyone help me?Code:6 Fruki index.php 2002-07-03 4 Imex admin.php 2002-07-01 7 Sani index.php 2002-07-04





Bookmarks