note 55919 rejected from function.mysql-connect by mazzanet
| From: | mazzanet@php.net | Date: | Wed, 17 Aug 2005 20:46:09 +0000 |
| Subject: | note 55919 rejected from function.mysql-connect by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93811@lists.php.net to get a copy of this message | ||
Note Submitter: B_real
----
Hello people
I am newbie to this here, and I am sorry if my question sounds stupid.
I am trying to get PHP work with MYSQL, but I recive error message all the time :
"Fatal error: Call to undefined function mysql_connect()"
Here is my db_config.php file:
<?php
$db_host = "localhost";
$db_user = "php" ;
$db_password = "f00";
$db_name = "lagerdb";
?>
And this is my temp_con.php file:
<?php
require ($_SERVER["DOCUMENT_ROOT"]."/config/db_config.php");
$connection = mysql_connect($db_host, $db_user, $db_password) or die ("error
connection");
echo "Connection made";
?>
I am using: WinXP, PHP Version 5.0.4, MYSQL 4.1 and Appache 1.3.33.
Please help me with some tips.
Thanx a lot.
regards,
B_real