RE: [PHP-DB] Notice: A non well formed numeric value encountered
| From: | Naintara | Date: | Sat, 22 Sep 2007 15:12:32 +0000 |
| Subject: | RE: [PHP-DB] Notice: A non well formed numeric value encountered | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44029@lists.php.net to get a copy of this message | ||
I don't see the NOTICE message.
Perhaps a timezone notice?
Lookup the date() function in the php manual.
The time parameter should be a unix timestamp value, so $CTS should contain
an integer value.
You can also find ways to convert the time value you have to unix
timestamp, in the manual.
-----Original Message-----
From: Stephen Sunderlin [mailto:stephen.sunderlin@verizon.net]
Sent: Saturday, September 22, 2007 7:48 PM
To: 'PHP-DB Mailing List'
Subject: [PHP-DB] Notice: A non well formed numeric value encountered
I'm getting the above NOTICE with the following statement:
Echo date('d/m/y',$CTS);
Where $CTS = 2007-09-22 10:09:31
And 31/12/69 is being echoed.
PHP 5.2.1
MYSQL 5.0.37-community-nt via tcp/ip
Thanks in advance for any insight.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php