LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mySql in PHP 4.2.2 (https://www.linuxquestions.org/questions/linux-newbie-8/mysql-in-php-4-2-2-a-72163/)

Blaz 07-12-2003 02:11 PM

mySql in PHP 4.2.2
 
Hello!

I am useing RH8 and runing Apache on it. I have installed it with PHP 4.2.2 and mySql support. But when i want to conect to the mySql database in PHP, I get an error:

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/db.php on line 6

I tried also with mysql_pconect() but did not worked.
Both Apache and mySql are runing on the sistem.

A am also new to the Linux and I want to know if I have to edit any of the configuration files. And where are located.

Thank you for your help.

Best, Blaz

david_ross 07-12-2003 02:13 PM

Did you install via rpms? if so you will need to install the "php-mysql" package as well as php and mysql.

Blaz 07-12-2003 02:17 PM

I select all php and mysql packages during the installation of RH8.

Blaz

david_ross 07-12-2003 02:35 PM

What output do you get when you run:
rpm -qa | grep php

Blaz 07-13-2003 10:41 AM

Thank you david_ross, you were right. I have to manualy install php-mysql package. I did not know that.
Now it all works :) .


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