class DB_databasel extends DB_Sql { var $Host = "localhost"; var $Database = $databasel <----- var $User = ""; var $Password = "";
I want to let the user choose the database, so the name of the database is variable. How do i fix this?
oh yeah I use phplib for the connection. class db_sql extended by the class above...
You'll need to specify the value for $database in the constructor (passing it in as a parameter).
Exempli gratia:
function DB_database1($database1) { $this->Database=$database1; }