Undefined function mysql_connect() error

前端 未结 1 1836
你的背包
你的背包 2020-12-12 01:24

I am new to this whole programming, PHP, MySql deal. So, if I don\'t say it how I should please bear with me. I ran MySql.PHP through my site and web browser and get this >\

相关标签:
1条回答
  • 2020-12-12 01:48

    Check if the mysql module is loaded.

    Your php.ini file needs to have extension=mysql.dll somewhere, without ; at the start of the line.

    See also phpinfo. It will help you see what is enabled.

    To do that, create a page called phpinfo.php in the webroot (e.g. the same place you put mysql.php) with this contents:

    <?php
    phpinfo();
    ?>
    

    then browse to http://localhost/phpinfo.php.

    Search that page for mysql. There should be a section about halfway down. If not, something is wrong with your setup and MySQL is not enabled.

    0 讨论(0)
提交回复
热议问题