[PHP-DB] Re: Subject: php date/time zone

2009-03-19 Thread Neil Smith [MVP, Digital media]
At 04:57 19/03/2009, you wrote: Message-ID: <[email protected]> Date: Thu, 19 Mar 2009 12:57:44 +0800 From: Ron Subject: php date/time zone Hi All, I have a form where in a user will enter a time and choose a timezone. based on those, i need to insert to db the time as the actu

[PHP-DB] Problem with PDO Mysql and FETCH::ASSOC

2009-03-19 Thread Thomas Robitaille
Hello, I am using the following code to perform queries on a MySQL database: $dbh = new PDO($GLOBALS['database'],$GLOBALS['username'], $GLOBALS['password']); $dbh->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $query = $dbh->prep