I\'m new to OOP. Originally I was defining variables and assigning values to them within the class and outside of the constructor, but after an OOP lesson in Java today, I was t
host,$this->username,$this->password)) { echo "connection successfully"; } } function db() { mysql_select_db($this->$dbname); } } $obj=new config(); ?>