I'm absolutely lost here.. i've read through previous questions and answers but all i do is break the code even more.
This obviously no longer works in php7, so i'm trying (and failing) to get this to work. It's probably a slap-head for most of the folks here, but how do i get this to work in php7? Thanks.
public function __construct() {
$arrConfig = include './config.php';
$this->objDB = mysql_connect($arrConfig['db']['host'], $arrConfig['db']['username'], $arrConfig['db']['password']);
mysql_select_db($arrConfig['db']['dbname'], $this->objDB);
}
results in the following error.
Fatal error: Uncaught Error: Call to undefined function mysql_connect()
cheers.