You are here: php/mysql object id question.. « PHP « IT news, forums, messages
php/mysql object id question..

Posted by "bruce" on 09/14/05 23:42

hi...

i have the following psuedo code...

i'm showing the pertinent parts, and eliminating the rest...

------------------------------------------
class sql
{

function sql(...)
{
return false

mysql_....

mysql_....
}

}

$db = new sql(...)

echo "db" = .$db;
----------------------------------------

$db comes back as an object id.. even when i force a 'return false'. it
appears that no matter what i do, the class constructor returns an object
id!!! the weird thing is that it gets to the 'return false' and then still
seems to return the 'object id' i've also replaced 'false' with other values
to see if it made a diff.. it didn't which is good... i would have really
hit the roof then!!

so.. why is this behavior occuring.

any ideas as to why?

or, am i just too tired right now!

thanks

bruce

ps.. i could use the $db, object ID, and try to see if it actually access
the db, in order to determine if it actually exists. but i shouldn't have to
do that... the class should return false!!!

 

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

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