I need to know if something is possible.. here is my query
SELECT allfieldsIneed FROM #__la_auction ORDER BY published DESC, finish_date ASC
(#__ is just for the prefix.. those that are familiar with joomla will recognize it)
Ok the published field tells me if the auction is finished or still active (1,0) 1=active 0=finished..
I want all my published auctions on top. I want them sorted by finish_date ASC. (Which is exactly what it does) EXCEPT..
For all the non-published (0) auctions I want the finish_date to sort DESC.. is this possible in 1 query?
Oh and BTW I'm using mysql with php..
SELECT allfieldsIneed FROM #__la_auction ORDER BY published DESC, finish_date ASC
(#__ is just for the prefix.. those that are familiar with joomla will recognize it)
Ok the published field tells me if the auction is finished or still active (1,0) 1=active 0=finished..
I want all my published auctions on top. I want them sorted by finish_date ASC. (Which is exactly what it does) EXCEPT..
For all the non-published (0) auctions I want the finish_date to sort DESC.. is this possible in 1 query?
Oh and BTW I'm using mysql with php..
"Nulla tenaci invia est via"