Re: Help required MySql + PHP

From: Date: Thu, 06 Dec 2001 08:53:15 +0000
Subject: Re: Help required MySql + PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-76841@lists.php.net to get a copy of this message
Hi Karthik, Most probably the PHP module that you are using with Apache is not compiled with Mysql support. Can you post the information about php installation that you have? Put this in a file called say "phpinfo.php": ------------------------------------------------------------------------ <?php phpinfo(); ?> ------------------------------------------------------------------------ When you view this page in your browser, you will see lot of useful information. It will also show the configure options with which PHP was compiled. In my case, it looks like this ------------------------------------------------------------------------ Configure Command './configure' '--with-mysql' '--with-pgsql' '--with-apxs' '--with-gd=/usr/local' '--with-png-dir=/usr/local' '--with-zlib-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-freetype-dir=/usr/local' '--enable-trans-sid' '--enable-exif' '--with-xml' '--enable-wddx' '--with-curl=/usr/local' '--with-pdflib=/usr/local' '--with-t1lib=/usr/local' '--enable-ftp' ------------------------------------------------------------------------ Check if you have --with-mysql in the configure options. Please let us know if you have further problems... Regards, Kundan On 12/6/01 2:08 PM, "Karthikeyan" <r.karthy@frlht-india.org> wrote: > Dear Members, > I installed RedHat 7.1, Apache, PHP4 and MySQL in a Intel Pentium processor > system. > Everything works fine (i.e. MySQL, PHP, etc). But when I want to connect > MySQL through PHP. It is giving an error 'call to unknown function > "mysql_connect" in line in __' . > Can any one provide a solution. > Thanks in advance > yours > Karthikeyan > > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <mysql-thread93213@lists.mysql.com> > To unsubscribe, e-mail > <mysql-unsubscribe-kundan.kumar=asia.apple.com@lists.mysql.com> > Trouble unsubscribing? Try: > http://lists.mysql.com/php/unsubscribe.php >

« previous php.general (#76841) next »