I am kinda new to MySQL and I am trying to order messages by date. And I also want to show no more than 10 messages. My query:
$sql2 = "SELECT `id`, `Afbeelding`, `Vraag`, DATE_FORMAT(date, '%d-%m-%Y %H:%i:%s') FROM vraagstellen ORDER BY date DISC LIMIT 10";
The order by gets disabled. Anyone who can help me? Thanks!