Reply to Re: http://us.php.net/manual/en/ref.pdo.php $dbh = null;

Your name:

Reply:


Posted by Rik on 06/16/07 09:03

On Sat, 16 Jun 2007 01:24:42 +0200, Jim Carlock <anonymous@127.0.0.1> =

wrote:

> Oops.
>
> I cancelled the message, but someone may have downloaded it.
> Please disregard the message. I tried to duplicate the problem,
> and it ended up as another problem.
>
> [15-Jun-2007 19:09:35] PHP Notice: Object of class PDO could not be =

> converted to int in index.php on line 117
>
> That notice occured on the if() line below...
>
> $oPDO =3D new PDO($sDBName, $sUserID, $sPassword);
> if (($oPDO) & (strlen($sSQL) > 0)) {

& =3D> && ?

& is a bitwise operator, I suspect it tries to cast $oPDO to an integer =
to =

check this, which cannot be done. It can however be cast to a boolean, =

which is what && does.

-- =

Rik Wasmus

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация