On 21 July 2010 15:04, Sky Gunning <sky.gunn...@gmail.com> 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('"UPDATE  '. TBL_USERS .' SET
> date_last_action=:updateDate WHERE id=:userId');

Try without the extra quotation mark before UPDATE.

Regards
Peter

-- 
<hype>
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
</hype>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to