Calling pg_connect from a class included..

From: Date: Sun, 21 Apr 2002 20:42:00 +0000
Subject: Calling pg_connect from a class included..
Groups: php.general 
Request: Send a blank email to php-general+get-93908@lists.php.net to get a copy of this message
I have recently been trying to create a class called Database with methods inside it to ease my coding with web applications. I've noticed though when I create an object from the class like $x = new Database(); Then try to call the connectDB() method (function we call it in PHP) like so $x->connectDb(bla bla bla bla); I get the error message that the function cannot be found as if it is for some reason looking in the class itself for a function of pg_connect when it should be using the PHP libriaries instead. Anybody else run into this problem or know a way to fix it. Thanks --- Sloan

« previous php.general (#93908) next »