NYCPHP Meetup

NYPHP.org

[nycphp-talk] oo php

Michele Waldman mmwaldman at nyc.rr.com
Thu Jun 11 17:31:01 EDT 2009


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

 

Michele

  _____  

From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Michele Waldman
Sent: Thursday, June 11, 2009 5:27 PM
To: 'NYPHP Talk'
Subject: [nycphp-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

 

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


More information about the talk mailing list