<?php
define ("DB_HOST", "http://localhost/");
define ("DB_USER", "root");
define ("DB_PASS", "");
$conection = mysql_connect("DB_HOST", "DB_USER", "DB_PASS");
$db = mysql_select_db("my_db");
if(!$conection || $db)
{
exit(mysql_error());
}
mysql_close();
?>