I am getting nothing from the code below, I am not a hundred percent sure about using class and methods within the class in php so this may be part of the problem, however i have created a new instance of both MysqlProp and MysqlConn, as you can see, MysqlProp contains things like host, user, etc and has mutator and get methods. However it appears that nothing is being returned as when i do echo "$$this->_mysql_prop->getHost(), i am getting nothing returned while in mysqlProp there is a method:
function getHost()
{
return $_host;
}
with $host being defined as var $host = 'localhost'; surely this should return localhost, where am i going wrong. Thanks
/ Sets the parameters required to connect to the database /
function setConnection()
{
/** Creates a new properties instance using the MysqlProperties defaults
$this->mysql_prop = new MysqlProperties();
/** Creates a new connection instance **/
$this->_mysql_conn = new MysqlConnect();
/** Set the properties of this connection **/
$this->mysql_conn->setProperties( $this->mysql_prop->getHost(), $this->mysql_prop->getUser(), $this->mysql_prop->getPassword() );
/** Connect to the database **/
$this->_mysql_conn->connectMysql();
}