Installed Apache and PHP5, 我能在localhost下看到我的php文件.
Then installed MySQL, 在command-line window 下能用 mysql -u root -p
然後type in
可就是in a php file:
$c = mysql_connect("localhost", "root", "mypassword");
在browser 中總是顯示:
Fatal error: Call to undefined function mysql_connect()
我用 a debug function : function_exists 檢查了一下, 的確沒有mysql_connect這個function.
請求幫助,多謝!
求教: 為什麽我的PHP can not talk to Mysql?
所有跟帖:
•
I worked it out. Thanks.
-2007fld-
♀
(0 bytes)
()
03/01/2007 postreply
13:06:28