得到了一個編碼器設計的程序,但它不會幫助設置它。我正在試圖將代碼連接到數據庫解析錯誤:語法錯誤,意外的'=',期望第33行的DB_driver.php中的T_FUNCTION
解析錯誤時,此錯誤:語法錯誤,意想不到的「=」,希望在T_FUNCTION \ SYSTEM \數據庫\上線DB_driver.php 33
我有雙檢查主機名,用戶名,密碼和數據庫名稱,但沒有勝利。
var $hostname; = 'localhost';
var $username; = 'pepadmin';
var $password; = '******';
var $database; = 'databasetest';
var $dbdriver = 'mysql';
var $dbprefix = '';
var $char_set = 'utf8';
var $dbcollat = 'utf8_general_ci';
var $autoinit = TRUE; // Whether to automatically initialize the DB
var $swap_pre = '';
var $port = '';
var $pconnect = FALSE;
var $conn_id = FALSE;
var $result_id = FALSE;
var $db_debug = FALSE;
var $benchmark = 0;
var $query_count = 0;
var $bind_marker = '?';
var $save_queries = TRUE;
var $queries = array();
var $query_times = array();
var $data_cache = array();
var $trans_enabled = TRUE;
var $trans_strict = TRUE;
var $_trans_depth = 0;
var $_trans_status = TRUE; // Used with transactions to determine if a rollback should occur
var $cache_on = FALSE;
var $cachedir = '';
var $cache_autodel = FALSE;
var $CACHE; // The cache class object
// Private variables
var $_protect_identifiers = TRUE;
var $_reserved_identifiers = array('*'); // Identifiers that should NOT be escaped
// These are use with Oracle
var $stmt_id;
var $curs_id;
var $limit_used;
這是行'33' ..? –
什麼是所有的「變種」? –
這看起來像一個配置文件。你需要發佈這個文件:'DB_driver.php' – 2013-10-09 04:06:39