Re: undefined function error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It could be possible that mySQL is not enabled in your installation of PHP.

Let the server parse a page with phpinfo() in it and read the results.  Look
for mySQL enabled.

Perhaps the reason it runs fine on another server is that the php on that
server has mysql enabled.

HTH,

Mark Cain

----- Original Message -----
From: "Chip Wiegand" <chip.wiegand@xxxxxxxxxx>
To: "PHP DB" <php-db@xxxxxxxxxxxxx>
Sent: Friday, March 18, 2005 4:53 PM
Subject:  undefined function error


> I have a web site that connects to a mysql database using this connect
> script -
>
> <? $db=mysql_connect("localhost","***","***");
>       mysql_select_db("simradusa",$db);
> ?>
>
> When I access the page it gives me this error -
>
> Fatal error: Call to undefined function: mysql_connect() in
> /usr/local/www/data-dist/connect on line 1
>
> Using mysql-4.1.10a for FreeBSD-5.3 with php-4.3.9
>
> Any idea why I'm getting this error? (the same connect string works fine
> on a differant web server running  FreeBSD-5.2.1/php-4.3.6/mysql-3.23.49)
>
> Thanks,
> Chip
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux