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

Re: Mysql-Php error



On Tue, Oct 09, 2001 at 11:37:25AM -0400, Eileen Orbell wrote:

> Call to undefined function: mysql_connect() in
> /var/www/html/mainfile.php on line 42

Solution A:

 Edit /etc/php4/apache/php.ini and add the following line at the end
 of the file:

   extension = mysql.so

Solution B:

 If you don't want to enable PHP-MySQL at system level, you can
 load the MySQL extension runtime by inserting the following PHP
 command at the very beginning of the PHP file:

  dl("mysql.so");

-- 
BALI, Andra's                                  GPG keyID: 78560E1C
drewie@bigfoot.com     bali@debian.org     andras.bali@stud.bke.hu



Reply to: