Nevermind.  I had a typo in my require().

 

Michele

  _____  

From: talk-boun...@lists.nyphp.org [mailto:talk-boun...@lists.nyphp.org] On
Behalf Of Michele Waldman
Sent: Thursday, June 11, 2009 5:27 PM
To: 'NYPHP Talk'
Subject: [nyphp-talk] oo php

 

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

 

_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/show_participation.php

Reply via email to