note 100711 rejected from function.mysql-connect by danbrown
| From: | danbrown@php.net | Date: | Mon, 01 Nov 2010 16:25:14 +0000 |
| Subject: | note 100711 rejected from function.mysql-connect by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173673@lists.php.net to get a copy of this message | ||
Note Submitter: richard dot f dot htc at hotmail dot co dot uk
----
hi can some one tell me why im getting this error?
Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache
Group\Apache2\htdocs\temp_con3.php on line 3
this is the code it relates to.
<?php
require($_SERVER["DOCUMENT_ROOT"]."/config/bd_config.php");
$connection = mysql_connect($db_host, $db_user, $db_password) or die ("error
connecting");
echo "connection made, yeah baby, yeah!";
?>