Php and mysql, a rookie problem.
| From: | Rafael Santos Garcia | Date: | Mon, 20 Jan 2003 19:21:53 +0000 |
| Subject: | Php and mysql, a rookie problem. | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-24986@lists.php.net to get a copy of this message | ||
Hi, I had already install mysql and php, the apache was in my linux distribution (Mandrake) and also one php, but i have install the last version in rpm.
I have stop and start the apache, and the php works without any problem. But when i call to a mysql function in the php code its give to me an error. This code is really simple, is only to prove that all works.
The code is only the line :
<?
mysql_connect ("aw", "aw", "pass");
?>
I prove in my Galeon and gives to me the error: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/aw/copia.php on line 10
I do not now why give this error, the php works and in the php.ini I have include the line extension = mysql.so
Is suppose that with this all must work, but it doesnt work.
Anyone have any idea about why this dont work, i'm sure that must be a stupid error.
Thanks.