RE: [PHP-WIN] Using date() function

2002-10-06 Thread Davy Obdam
om: H Marc Bower [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 06, 2002 1:54 PM To: Davy Obdam; Php Mailinglist; Php-Windows Mailing Subject: Re: [PHP-WIN] Using date() function Am I correct in assuming that $sql[] is the result of a mysql_fetch_array (or similar call)? If so, you shouldn&#x

Re: [PHP-WIN] Using date() function

2002-10-06 Thread H Marc Bower
Am I correct in assuming that $sql[] is the result of a mysql_fetch_array (or similar call)? If so, you shouldn't need the " in $sql["date"]. (V) - Original Message - From: "Davy Obdam" <[EMAIL PROTECTED]> > $entry_date = date('l, d F Y H:i:s','$sql["date"]'); > echo $entry_date; > > Bu

[PHP-WIN] Using date() function

2002-10-06 Thread Davy Obdam
Hi people I have a guestbook, and i need to convert the date and time from the database into a normal readable date.. Like Sunday, 6 october 2002 13:30:00. I thought i could use the date() function here. I have done this: $entry_date = date('l, d F Y H:i:s','$sql["date"]'); echo $entry_date; Bu