classes and variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

I am new to classes in PHP and do want to change a class that has been in a package I downloaded. I do simply want to access a variable from outside.

This is the code:

    class search_helper extends AjaxACApplication
    {

	   //global $DB;

	   var $db_database = 'test';
	}

I would like to replace 'test' with $DB. This is the variable from outside that holds the name of the Database.

Thank you for any help!

Merlin

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux