hi i have been working all day on getting this var to pass to another function but it will not..
in my website config i have
$link=mysql_connect($xxxNST_DB_HOST,$xxxNST_DB_USER,$xxxNST_DB_PASS);
$db=mysql_select_db($xxxNST_DB_NAME,$link);
i want to use the $link var and $db in another file in another function
so i have tried to set
global_session('$link');
and the other one in my config then ref it by
$GLOBALS['$link']
in the file i want to use it in but it wont ass
i have also tried
$link=mysql_connect($GLOBAL['$xxxNST_DB_HOST']): blah blah and so on format but still wont
so how do i grab this var in this function and use it please..