I'm trying to add a custom script that needs to access database i set global like in account.php but gives me "can not connect " message, if i add in data manually it works fine. this is for a module i'm working on.
is $db_info['host'] the correct request ?
gave $db['host'] too no luck
sample
[code]
function loadto() {
global $nav, $config, $db, $client;
$conn=mysql_connect($db_info['host'];, $db_info['user'], $db_info['pass']);
mysql_select_db($db_info['dbname']) or die("unable to connect");
}
[/code] |