Hi there
I have a MySql database where I have six columns: id, date, month, year, subject, text
Now I wan't to make a query sorted by date, month, year
example:
$result = mysql_query("SELECT id, date, month, year, subject, text FROM news ORDER BY date, month, year DESC LIMIT 5");
while($data = mysql_fetch_array($result)){
extract ($data);
Problem is that I had som news which was shown in the following order:
01-05-2003
30-04-2003
28-04-2003
and that was OK, but when adding news dated 02-05-2003
it ended up looking like:
01-05-2003
02-05-2003
30-04-2003
28-04-2003
How come???
Sincerely
qrt123