Code: Select all
$cdatabase = 'XXXXXXX;
$cUID = 'XXXXXX';
$cPWD = 'XXXXXX';
$cSRVname = 'XXXXXXX';
$cconnectionInfo = array("Database" => $cdatabase, "UID" => $cUID, "PWD" => $cPWD);
$cconn = sqlsrv_connect($cSRVname, $cconnectionInfo);BTW i will be using the variable $cconn when i do queries and things how would i make it so this variable is accessible to use on every page (i.e Make it a global variable)
Thanks in advance