PHP Fatal error: Call to undefined function mysql_connect()RSS

3 replies

Last post Mar 22, 2016 07:42 PM by DropPhone

  • PHP Fatal error: Call to undefined function mysql_connect()

    Jan 22, 2015 05:43 PM|PacoRenteria|LINK

    Greetings Fellows, I am having this problem in just one page!

    PHP Fatal error:  Call to undefined function mysql_connect()

    I am using IIS8.0 with PHP 5.3, the problem is ONLY on one page and I have tried everything that has come to my mind. Even replaced the code with other copied from a working page and surprisingly, it doesn't work.

    I have checked and double checked the page sintaxis and still doesn't work.

    ¿any ideas?

    Thx in advance.

    mysql mssql_connect php

  • DropPhone DropPhone

    358 Posts

    Microsoft

    Moderator

    Re: PHP Fatal error: Call to undefined function mysql_connect()

    Jan 26, 2015 05:44 PM|DropPhone|LINK

    Just checking: is the extension=php_mysql.dll enabled in your php.ini file?

    You may also need to uncomment the extension=php_pdo_mysql.dll and the extension=php_mysqli.dll lines as well.

    Thx!

        --E.

    mysql mssql_connect php

  • Re: PHP Fatal error: Call to undefined function mysql_connect()

    Mar 09, 2016 07:30 AM|Onret|LINK

    I have the same problem (exept running on iis10 and have php 7.0.3). I could only find "extension=php_mysqli.dll" in my .ini file and have tried to write in "extension=php_mysql.dll" and paste a downloaded php_mysql.dll in the /ext/ directory. Didn't work. I have also uncommented the lines you suggested. I would really appreciate your help. 

  • DropPhone DropPhone

    358 Posts

    Microsoft

    Moderator

    Re: PHP Fatal error: Call to undefined function mysql_connect()

    Mar 22, 2016 07:42 PM|DropPhone|LINK

    Onret

    I have the same problem (exept running on iis10 and have php 7.0.3).

    MySQL_connect() has been deprecated in PHP7.  See http://stackoverflow.com/questions/10615436/fatal-error-call-to-undefined-function-mysql-connect and http://php.net/manual/en/function.mysql-connect.php 

    Thx!

        --E.