LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Can't connect MySQL through PHP (https://www.linuxquestions.org/questions/programming-9/cant-connect-mysql-through-php-14499/)

mac 02-18-2002 07:51 AM

Can't connect MySQL through PHP
 
When I run the page, it appears:

Fatal Error : Call to undefined function : mysql_connect() in connectDB.php on line 4

I'm using RedHat 7.2 and have MySQL installed.
Is there any things need to be configured or installed?

Help!!

entm 02-18-2002 09:23 AM

Try running a phpinfo() page, and look to see if php is configured to work with MySQL. I have Red Hat 7.0, and php and Apache came configured to work with PostgreSQL rather than MySQL.

You may need to ./configure the php module to recognize MySQL. Check out the man pages and HOWTOs for configuration help with php.


All times are GMT -5. The time now is 11:07 AM.