Re: Call to undefined function mysql_connect()
| From: | Andrew | Date: | Wed, 15 Sep 2004 21:54:58 +0000 |
| Subject: | Re: Call to undefined function mysql_connect() | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-24582@lists.php.net to get a copy of this message | ||
I had a similar problem with PHP5 and IIS. I had to copy the php_mysql.dll
to my c:\winnt folder (and/or c:\php\ -- it didn't like the ext folder). I
assume you have enabled it in your php.ini?
"Melanie Ployhar" <meployhar@hotmail.com> wrote in message
news:BAY16-F3831DPrZjuy0000148a2@hotmail.com...
> I'm working with PHP 5, MySQL 4.0.2, ApacheJServ/1.1.2 on Windows 2000
> box. I'm having problems getting the MySQL API setup. I have followed the
> steps outlined on the php.net sight but still receive an error "Call to
> undefined function mysql_connect()".
>
> Here is the php.net link for this.
> http://us2.php.net/manual/en/ref.mysql.php
>
> I did this:
> Added "C:\php;C:\php\ext" to my PATH environment variable, (php_mysql.dll
> is under c:\php\ext)
> In php.ini have.
> extension=msql.dll
> extension=php_mysql.dll
> extension=php_mysqli.dll (for extended mysql functions)
>
> I restarted my Apache server and still get the following error.
> "Call to undefined function mysql_connect()".
>
> Do you have a suggestion what I need to do? Thank you for your time!
>
> -meployhar@hotmail.com
>
> _________________________________________________________________
> Check out Election 2004 for up-to-date election news, plus voter tools and
> more! http://special.msn.com/msn/election2004.armx