Soldato
- Joined
- 12 Feb 2006
- Posts
- 17,643
- Location
- Surrey
fixed this problem, got another in my post down though
\/
\/
Last edited:
<?php
require ($_SERVER["DOCUMENT_ROOT"]."/config/db_config.php");
$connection = mysql_connect ($db_host, $db_user, $db_password); or die("error connecting");
echo "connection made";
?>
<?php
$db_host = "localhost";
$db_user = "adam";
$db_password = "something is here but have removed it for the forum";
$db_name = "db_01";
?>
$connection = mysql_connect ($db_host, $db_user, $db_password)[COLOR=Yellow]; or die("error connecting");[/COLOR]
$connection = mysql_connect ($db_host, $db_user, $db_password) or die("error connecting");