So I have one particular class, that should be usable by other classes in an

For example:

class db_class {
    var name
    var name_2

    function() {

    function_2() {

The class above is a general database class that's functions are needed by
the other API classes to grab/parse data from a database.

class other_class {
    var othername
    var othername2

    function sys_list($sys_id) {
        $db = new db_class("user","pass","database","hostname");

However, when attempting to run a script like this, PHP will output an error
regarding nesting classes. What is the best method to allow for nesting or
associating these two classes, so the second can refer to the first?


Roy Wilson, Jr.
Principal Web Engineer, MIS
Ain Spiorad Networks

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to