出于安全考虑,我隐藏了其他详细信息
SQLSTATE [28000] [1045] 用户'cPanelUsername_databaseUsername'@'localhost'的访问被拒绝(使用密码:YES)致命错误:在/home3/username/public_html/domai/中的非对象上调用成员函数prepare()第 25 行的 AppINIT.php
appINIT.php configuration settings
<?php
$db_host = "localhost";
$db_port = "80";
$db_user = "cPanelUsername_databaseUsername";
$db_password = "xxxxxxx";
$db_name = "cPanelUsername_databaseName";
define("EXT", '.php');
$licensekey = ""; #License Key
$secret = "yyyy"; #Secuirity Salt
?>
//prepared statement
$stmt = $dbh->prepare("select * from appconfig"); $stmt->execute(); $result = $stmt->fetchAll();
提前致谢