Re: [PHP] PDO and UPDATE problem

2010-07-21 Thread Peter Lind
On 21 July 2010 15:04, Sky Gunning wrote: > Hello > > I have a problem with a update using PDO. > (learning atm and updating a php class to use PDO) > >    private function updateUser($id) >    { >        $date = mktime(); > >        $DB = Db::getInstance(); > >        $stmt = $DB->prepare('"UPDAT

[PHP] PDO and UPDATE problem

2010-07-21 Thread Sky Gunning
Hello I have a problem with a update using PDO. (learning atm and updating a php class to use PDO) private function updateUser($id) { $date = mktime(); $DB = Db::getInstance(); $stmt = $DB->prepare('"UPDATE '. TBL_USERS .' SET date_last_action=:updateDate WHERE