主題: 求救===>Fatal error: Call to a member function on a non-object in c:\appserv\ww 作者: leo2007 於 一月 06, 2007, 01:08:46 下午 :-S當我要執行 "2 Confirm Information"的時候輸入後next卻出現下面的訊息,不知如何是好呀?請各位幫幫忙呀!
Exception message: mysql_connect(): Unknown MySQL Server Host 'locahost' (11001) Error code: 2 -- Backtrace -- c:\appserv\www\class\database\adodb\drivers\adodb-mysql.inc.php(339): mysql_connect c:\appserv\www\class\database\adodb\adodb.inc.php(413): adodb_mysql._connect c:\appserv\www\wizard.php(656): adodb_mysql.connect c:\appserv\www\wizard.php(937): connectdb c:\appserv\www\class\controller\controller.class.php(305): wizardsteptwo.perform c:\appserv\www\wizard.php(1814): controller.process Exception message: mysql_get_server_info(): supplied argument is not a valid MySQL-Link resource Error code: 2 -- Backtrace -- c:\appserv\www\class\database\adodb\drivers\adodb-mysql.inc.php(394): mysql_get_server_info c:\appserv\www\class\database\adodb\drivers\adodb-mysql.inc.php(347): adodb_mysql._issupportutf8 c:\appserv\www\class\database\adodb\adodb.inc.php(413): adodb_mysql._connect c:\appserv\www\wizard.php(656): adodb_mysql.connect c:\appserv\www\wizard.php(937): connectdb c:\appserv\www\class\controller\controller.class.php(305): wizardsteptwo.perform c:\appserv\www\wizard.php(1814): controller.process Fatal error: Call to a member function on a non-object in c:\appserv\www\wizard.php on line 938 主題: Re: 求救===>Fatal error: Call to a member function on a non-object in c:\appserv\w 作者: bibicall 於 一月 06, 2007, 03:15:19 下午 仔細讀一讀第一行的錯誤
引用 Exception message: mysql_connect(): Unknown MySQL Server Host 'locahost' (11001) 意思是說:mysql_connect有問題,無法辨認主機名稱原因是:你的主機名稱打錯了 是localhost不是locahost 少了個 L,當然會告訴你 mysql_connect 有問題 因為他根本認不得少了一個L的「locahost」 |