<?php
$host = "localhost"; // Your mysql host
$user = "username"; // Your user name
$pass = ""; // Your password
$db ="db_name"; // Your database name
mysql_connect($host, $user, $pass)
or die("<b>Could not connect:</b>" .mysql_error());
mysql_select_db($db)
or die ("<b>Database could not be found:</b>" .mysql_error());
?>
|