PHP無法執行mysql指令

我的PHP可以連上mysql(可以執行mysql_connect()),但是卻不能執行其他的指令,不知道哪裡出了問題,以下是我的error_log:

[Sat Mar 18 23:20:27 2006] [error] [client 220.133.2.244] File does not exist: /home/hon/html/favicon.ico

[client 220.133.2.244] PHP Fatal error: Call to undefined function mysql_create_db() in /home/hon/html/sqltest.php on line 4

Update:

我是使用apache

2 Answers

Rating
  • 1 decade ago
    Favorite Answer

    根據php的原始網站說明他的意思是說 mysql_create_db和mysql_createdb已經被取消了你應該用mysql_query去達成CREATE DB

    For downwards compatibility mysql_createdb()

    can also be used. This is deprecated, however.

    �`:

    The function mysql_create_db() is deprecated. It

    is preferable to use mysql_query() to issue a

    SQL CREATE DATABASE Statement instead.

    ĵ�i

    This function will not be available

    if the MySQL extension was built against a MySQL 4.x client library.

    To 小黑黑favicon.ico是用作網頁小圖示的功能這是瀏覽器預設會去抓但是並不是強制一定要的所以這並不是問題的所在

  • Arc
    Lv 5
    1 decade ago

    上面的錯誤是說你的/home/hon/html/favicon.ico 不再了看是哪出了問題 如果不型就重裝 應該問題就會解決

    你的資料庫是要做啥用途的呢??

    建議用阿帕器看看比較方便

    Source(s): 自己
Still have questions? Get your answers by asking now.