Re: call to a member function select() on a non object.

From: Date: Wed, 30 Jan 2008 07:44:28 +0000
Subject: Re: call to a member function select() on a non object.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-268308@lists.php.net to get a copy of this message
nihilism machine wrote:
    // Connect to the database
    public function __construct() {
        $DB = new db();
Everything Nathan said, plus change the $DB to $this->DB in your construct() method. Jim

« previous php.general (#268308) next »