Re: how should MS Access DATETIME be handled in PHP?

From: Date: Thu, 13 Apr 2006 15:41:52 +0000
Subject: Re: how should MS Access DATETIME be handled in PHP?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-233908@lists.php.net to get a copy of this message
Hi! Bing Du wrote:
Excellent! Yes, it now does give me a clue to see what's actually in the object. print_r($rec[0]) shows: stdClass Object ( [year] => 2005 [month] => 8 [day] => 31 [hour] => 0 [minute] => 0 [second] => 0 [fraction] => 0 ) I've never dealt with object in PHP. Something new learnt today. I'm now able to use get_object_vars($rec[0]) to extract the info from the object.
You don't need get_object_vars(), you can simply use $rec[0]->year; Perhaps have a look at the docs: http://de3.php.net/oop5 And perhaps the following example is useful for you: http://odbtp.sourceforge.net/timetable.html#list regards Andreas

« previous php.general (#233908) next »