Hi guys, I'm new to PHP so don't expect me know everything!
I've table in db called 'comments', within this table there is field dedicated just for the date and time of when comment was published/created!
Here is what I have done so far, but is giving me different output! I want it to display the date and time format as 'l j/m/Y H:i' instead of 'Y-m-j H:i:s'.
$q = mysql_query('select * from comments');
while($r = mysql_fetch_array($q)){
$id = $r['id'];
$title = $['title'];
$text = $r['text'];
[B]$created = date('l j/m/Y H:i', $r['created']);[/B]
}
The 'created' field type is set to 'datetime'.
Thanks in advance!