whats wrong in this code ? [i am learning]!
View Single Post
07-02-2008, 09:56 PM
Join Date: May 2008
Thank you i get it now ;) just because it's private i need to keep it on that same page, so it can read the values i get it all..
Making it privage gives you the ability to access the variables inside of the class, IE $this->. However, you would not be able to get it outside of the class lets say after it has been initialized.
$this->dbn would return results inside of the class,
$database_connection = new db_connection();
echo $database_connection->dbn; Should throw some type of error.
There are No Stupid Questions. But there a LOT of Inquisitive Idiots.
The Following User Says Thank You to drewbee For This Useful Post:
View Public Profile
Send a private message to drewbee
Find More Posts by drewbee