Re: cannot find mysql_connect; _pconnect
| From: | Chris Hewitt | Date: | Tue, 18 Jun 2002 17:31:45 +0000 |
| Subject: | Re: cannot find mysql_connect; _pconnect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102986@lists.php.net to get a copy of this message | ||
Anthony,
It sounds as though php was not compiled with mysql support. Check phpinfo() to see.
Regards
Chris
Anthony 'Crash' Ciarochi wrote:
I am having trouble connecting to my MySQL database: The error message I receive in my browser is: Fatal error: Call to undefined function: mysql_connect() in ../results.php on line 21 The line in question is a simple db connection: $db = mysql_connect("localhost", "test", "test123"); Similar errors are receieved with mysql_pconnect, and others. This sounds like a configuration problem, but ??? System info: OS: Linux (Redhat 7.3) MySQL: version 3.23.49, working normally PHP: version 4.1.2-7, working normally, except for the database connection utilities related rpms installed:php-4.1.2-7.i386.rpm php-devel-4.1.2-7.i386.rpmphp-mysql-4.1.2-7.i386.rpmphp-dbg-4.1.2-7.i386.rpm Msql-Mysql-modules-11.2216.tar.gzmysql-31.23.49a-pc-linux-gnu-i686.tar.gz Any ideas?? - AFC