You do this
$query_rs_news = "SELECT id, DATE_FORMAT(date,'%D-%m-%Y'), title, copy, link, COALESCE(image, 'spacer.jpg') AS image FROM news";
And then display the date with:
<?php echo $row_rs_news['date']; ?></p>
But the query has no RESULT column called "date". It *uses* date in a reformat, but the resulting field is not given a name. Try this
$query_rs_news = "SELECT id, DATE_FORMAT(date,'%D-%m-%Y') as formattedDate , title, copy, link, COALESCE(image, 'spacer.jpg') AS image FROM news";
And then display the date with:
<?php echo $row_rs_news['formattedDate']; ?></p>
I have used "formattedDate" since date is a keyword in MySQL and should really not be used or should be "back-ticked". The main change is the
DATE_FORMAT(date,'%D-%m-%Y') as formattedDate
in the SELECT.