im following a video tutorial and they type these stuff. i did the same as them, but its not working for me. any idea why?


db_config file is like this.
<?php
$db_host = "localhost";
$db_user = "php";
$db_password = "f00";
$db_name = "mydb";
?>
and when i open this, nothing appears on the page. anything wrong in this?
<?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";
?>



db_config file is like this.
<?php
$db_host = "localhost";
$db_user = "php";
$db_password = "f00";
$db_name = "mydb";
?>
and when i open this, nothing appears on the page. anything wrong in this?
<?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";
?>

