Soz, still having probs with it, i'm very new to PHP :p
I am using mySQL and i've amended the string you quoted to
$query = mysql_query("SELECT DATE_FORMAT(edate, \"d M Y\") AS \"Date\" FROM events");
I'm not getting anything when i try to access the array using
while ($row = mysql_fetch_array($query)) {
echo( "<b>EVENT: </b>" . $row["edate"] . "<br>");
}
The query i want to use is
$result = mysql_query("SELECT event, descrip, edate, status, id FROM events WHERE status = 'Active' GROUP BY edate LIMIT 2");
but with the DATE_FORMAT statement included, can that be done??
The existing code i'm using to get the data out of the array is
if (!$result) {
echo( "<p>Error connecting to database</p>");
exit();
}
while ($row = mysql_fetch_array($result)) {
echo( "<b>EVENT: </b>" .
$row["event"] .
"<br><B>DESCRIPTION: </b>" .
$row["descrip"] .
"<br><b>EVENT DATE: </b>" .
$row["edate"] . "<br><br>");
}
Soz, its really simple i know, just havin writers block 😃
Pete