note 55919 added to function.mysql-connect
| From: | B_real at osu1 dot php dot net | Date: | Wed, 17 Aug 2005 18:53:29 +0000 |
| Subject: | note 55919 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93804@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55919
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55919&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55919&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55919&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55919&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55919&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55919&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55919&report=yes
Search -- http://master.php.net/manage/user-notes.php