php/mysql object id question..

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

 



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!!!

-- 
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