Quantcast
Channel: WHMCS Community Forums
Viewing all articles
Browse latest Browse all 13458

Global DB replacement? What do we use now?

$
0
0
Hey,

in former addons we used
global $db_host,$db_username,$db_password,$db_name;
mysql_connect($db_host,$db_username,$db_password);
which does not work anymore? What do we use now? Or is that still working?

Edit:

To share the answer:
replace the global part with
Quote:

require_once($ROOTDIR .'/configuration.php');

Viewing all articles
Browse latest Browse all 13458

Trending Articles