求教: 為什麽我的PHP can not talk to Mysql?

來源: 2007-03-01 12:25:02 [舊帖] [給我悄悄話] 本文已被閱讀:

Installed Apache and PHP5, 我能在localhost下看到我的php文件.
Then installed MySQL, 在command-line window 下能用 mysql -u root -p
然後type in 進入 MySQL.

可就是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.
請求幫助,多謝!