here is my problem:
index.php contents:
require_once('phpcommonscripts/connections/connection.php');
require_once('phpcommonscripts/functions/logging.php');
Func_LogToDB($logType, $actionType, $errMsg, $varUser);
connection.php contents:
$hostname_MYDB = "localhost";
$database_MYDB = "MYDB";
$username_MYDB = "USER";
$password_MYDB = "PASS";
$MYDB = mysql_pconnect($hostname_MYDB, $username_MYDB, $password_MYDB) or trigger_error(mysql_error(), E_USER_ERROR);
logging.php contents:
function Func_LogToDB($lType, $lAction, $lMessage, $lUser) {
mysql_select_db($database_MYDB, $MYDB);
}
ERROR MESSAGE:
Notice: Undefined variable: database_MYDB in /home/notes/public_html/phpcommonscripts/functions/logging.php on line 22
( line 22 is the mysql_select_db() line... )
Am I doing something wrong here ?