note 34994 deleted from function.mysql-connect by didou
| From: | didou@php.net | Date: | Thu, 14 Aug 2003 14:37:49 +0000 |
| Subject: | note 34994 deleted from function.mysql-connect by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54165@lists.php.net to get a copy of this message | ||
Note Submitter: Eduard
----
If you find the anoying error:
Fatal error: Call to undefined function: mysql_connect()
And you are sure enough php has been compiled with mysql (you can run phpMyAdmin in that site, for
example) surely php has been compiled with --with-mysql=shared.
In this case you must load the mysql.so library prior to use any mysql function.
Use
if (!extension_loaded("mysql.so")) dl("mysql.so");
$db=mysql_connect($hst,$user,$passwd);
mysql_select_db($dbname,$db);
to prevent this problem.