|
Subject:
|
undefined function: mysql_connect()
|
|
Posted By:
|
shabboleth
|
Post Date:
|
8/28/2003 3:57:01 PM
|
I am running PHP on Red Hat 9. The result screen from running phpinfo() shows that I have '--with-mysql=shared,/usr' option configured. However when I try to run the database and table listing script from page 402 of "Beginning PHP" I get the following error:
Fatal error: Call to undefined function: mysql_connect() in /var/www/html/showdb.php on line 6
I am pretty new to Linux and very new to PHP. I appreciate any help I can get on this problem.
|
|
Reply By:
|
nikolai
|
Reply Date:
|
8/28/2003 4:16:56 PM
|
Take a look at these: http://www.phpbuilder.com/mail/php-db/2002122/0126.php http://dbforums.com/arch/149/2002/11/559215
I haven't installed PHP using RPMs, just the good-ol' ./configure n' make approach. This seems to be an issue with the Red Hat RPM installation.
Take care,
Nik http://www.bigaction.org/
|
|
Reply By:
|
rob.weaver
|
Reply Date:
|
9/18/2003 5:09:00 PM
|
The .rpm's are just seperate the one that needs installing is
php-mysql-4.2.2-17.i386.rpm
that is for Disk 2 for RH9 or go to
http://www.redhat.com/swr/i386/php-mysql-4.2.2-17.i386_dl.html
Rob
|