Re: PDO and UPDATE problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21 July 2010 15:04, Sky Gunning <sky.gunning@xxxxxxxxx> 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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux