Re: Using date() function
| From: | H Marc Bower | Date: | Sun, 06 Oct 2002 11:54:27 +0000 |
| Subject: | Re: Using date() function | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-16201@lists.php.net to get a copy of this message | ||
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" <info@davyobdam.com>
> $entry_date = date('l, d F Y H:i:s','$sql["date"]');
> echo $entry_date;
>
> But then i dont get the date i need. It says Thursday, 01 January 1970
> 01:00:00 (i wasn
t even born then;-), so it wasnt me signing
> that
> guestbook. Any sugestions what i am doing wrong. Thanks for your time.