NYCPHP Meetup

NYPHP.org

[nycphp-talk] oo php

Michele Waldman mmwaldman at nyc.rr.com
Thu Jun 11 17:26:57 EDT 2009


I'm modifying a class.  I need to use functions outside of the class like
dbConnect().  How do I reference functions defined outside of the class?

 

  private function getLogin()

  {

   $link = dbConnect();

   $query = "SELECT user_name, email_server FROM email_admin";

   $result = mysql_query($query, $link);

      if ($row = mysql_fetch_array($result))

      {

         $this->Username = $row[0];

         $this->Host = $row[2];

      }

}

 

It currently does not see to like external references.

 

Michele

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20090611/17fc7b8f/attachment.html>


More information about the talk mailing list