$Con = mysql_connect("localhost","phelen_phelen","akkjhc01") or die (mysql_error()); mysql_select_db("phelen_banco") or die (mysql_error()); $Sql = mysql_query("SELECT *,DATE_FORMAT(data, '%d/%m/%Y') from arq ORDER BY data DESC LIMIT 10 ") or die ("<b>Erro: </b>".mysql_error()); while ($RRr = mysql_fetch_array($Sql)) { echo "<font face='Verdana, Arial, Helvetica, sans-serif' size='2'>"; if (strlen($RRr['nome']) <= "13") { echo "<a href='{$RRr['ender']}'>{$RRr['nome']}<br><font face='Verdana, Arial, Helvetica, sans-serif' size='1'> {$RRr['data']} - {$RRr['hora']}<BR><BR></font></font></a>"; } else { echo "<a href='".$RRr['ender']."'>".substr($RRr['nome'], 0,13)."...<br><font face='Verdana, Arial, Helvetica, sans-serif' size='1'> {$RRr['data']} - {$RRr['hora']}<BR><BR></font></font> </a>"; } } ?>
Usei o DATE_FORMAT(data, '%d/%m/%Y') para mostrar a hora em xx/xx/xxxx porem se eu usar o $RRr['data'] ele mostra xxxx-xx-xx, como mostrar em xx/xx/xxxx? E eu queria mostrar em ordem DESC usando a Data, só que os arquivos upados por ultimo no mesmo dia acabam ficando atras, como usar a hora e a data junto para dar a ordem?