Results 1 to 2 of 2

Thread: Fatal error: Call to undefined function mysql_connect()

  1. #1
    Join Date
    Jul 2005
    Posts
    10

    Fatal error: Call to undefined function mysql_connect()

    I've been having trouble installing MySQL with PHP. PHP can't seem to find the MySQL library. Here's the specs:

    Windows XP Home
    Apache 2.0
    PHP 5

    I know php works because phpinfo(); works on my machine. I un-commented "extension=php_mysql.dll" in the php.ini file. I don't know why it doesn't work.

    any help would be appreciated.

  2. #2
    Join Date
    Jan 2006
    Location
    Manchester England UK
    Posts
    225
    Do you have the correct PHP folder? Usually C:\PHP\

    Within this or the extensions folder you need to have php_mysql.dll

    Then go to control panel > system > Advanced > Environment variables

    under the path variable add

    ;C:\PHP\

    to the end of the other paths. ok these settings then reboot and see if that fixes it.

Similar Threads

  1. correct use of a function?
    By numbenator in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 24 Sep 2005, 09:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •