Ok so I am new to php and am having a problem with a simple script that I have seen work from a php learning video tutorial (made in 2002). I will include the codes I have been trying to get to work. Basically I wanna connect to a mysql database but with 2 separate files. One file db_config.php has the login information. bikes.php has the strings to start the connection.
bikes.php
<?php
require ($_SERVER["DOCUMENT_ROOT"].'/bikes/db_config.php');
$connection = mysql_connect ($db_host, $db_user, $db_password) or die ("error connecting");
echo "connection made";
?>
db_config.php
<?php
$db_host = "localhost";
Sdb_user = "admindb";
$db_password = "*****";
$db_name = "bikes";
?>