You are here: Re: http://us.php.net/manual/en/ref.pdo.php $dbh = null; « PHP Programming Language « IT news, forums, messages
Re: http://us.php.net/manual/en/ref.pdo.php $dbh = null;

Posted by Jim Carlock on 06/15/07 23:24

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 = new PDO($sDBName, $sUserID, $sPassword);
if (($oPDO) & (strlen($sSQL) > 0)) {

and not on the...

$oPDO = null;

line.

If someone replies to the message I'll repost it. If not, perhaps
I still have something here to question. Specifically the line that
sets $oPDO to null. The webpage in question only presents it
one time and few (if any) of the other examples use that line.

My apologies about sending folks off on a wild goose chase in
the previous message. :-)

--
Jim Carlock
Post replies to the group.

 

Navigation:

[Reply to this 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

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