OK, I've played around with this for long enough!
I'm using statements in my PHP files and this is what I have:
What I want to do do though is format the date.
I want the date to look like this
Monday 21 September
But I have no idea how to format this associative array.
I'm using statements in my PHP files and this is what I have:
Code:
$result = mysql_query("select * from lunch where category='lunch' and date>=CURDATE()");
while ($row = mysql_fetch_assoc($result)) {
echo '<div class="lunchItem">';
echo '<div class="lunchDateHeader">';
echo $row[date];
echo '</div>';
echo '<div class="lunchItems">';
echo $row[maincourse].'<br />'.$row[pudding];
echo '</div>';
echo '</div>';
}
I want the date to look like this
Monday 21 September
But I have no idea how to format this associative array.