这是我的问题:
index.php内容:
require_once('phpcommonscripts/connections/connection.php');
require_once('phpcommonscripts/functions/logging.php');
Func_LogToDB($logType, $actionType, $errMsg, $varUser);
connection.php内容:
$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内容:
function Func_LogToDB($lType, $lAction, $lMessage, $lUser) {
mysql_select_db($database_MYDB, $MYDB);
}
错误消息:
注意:未定义的变量:第22行/home/notes/public_html/phpcommonscripts/functions/logging.php中的database_MYDB
(第22行是mysql_select_db()行...)
我在这里做错了吗?