Classes and Includes

Classes and Includes

am 13.12.2005 21:57:27 von Craig Hoffman

Hi There,
Question: How do I include a file or another class, such as a
database connection (table, username, password, etc...) into a
class? I don't want to to change the username and password on every
class(file) that I upload to the server? I'm just picking up this OO
stuff, I'm sort of a newbee. ;) Any help would be appreciated.

For example:

class SomeClass {

var someVarable;

public function SomeFunction {
//run some query from the MySQL...

}

}
?>

Thanks,
Craig

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Classes and Includes

am 13.12.2005 22:16:33 von Joseph Crawford

------=_Part_17739_16223476.1134508593578
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

include_once('database.php');


--
Joseph Crawford Jr.
Zend Certified Engineer
Codebowl Solutions, Inc.
1-802-671-2021
codebowl@gmail.com

------=_Part_17739_16223476.1134508593578--