Re: Re(2): Re(2): [PHP-DB] Fatal Error using mysql_connect()
| From: | Jason Wong | Date: | Wed, 13 Mar 2002 04:24:54 +0000 |
| Subject: | Re: Re(2): Re(2): [PHP-DB] Fatal Error using mysql_connect() | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17639@lists.php.net to get a copy of this message | ||
On Wednesday 13 March 2002 04:50, mailing list wrote:
> It compiled without any errors using -with-mysql=/usr
>
> However I still receive an error while trying to connect to my mysql
> database:
>
> Fatal error: Call to undefined function: mysql_connect() in
> /www/meyercousa/pages/view_data.php on line 13
>
> I have pasted my configuration from phpinfo(). Hope this helps
[snip]
> '--with-ldap=shared' '--with-mysql=shared' '--with-pgsql=shared'
> '--with-unixODBC=shared' '--with-apxs=/usr/sbin/apxs'
I'm confused as to what exactly you have done here. You say "it compiled
without any errors using -with-mysql=/usr"
But then your config from phpinfo() shows:
--with-mysql=shared
My advice is to do a clean installation: delete your current php src
directory, extract the php tarball into a new directory then run
configure
make
stop webserver
make install
restart webserver
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
My only love sprung from my only hate!
Too early seen unknown, and known too late!
-- William Shakespeare, "Romeo and Juliet"
*/