?
$db=mysql_connect("localhost","root","")
or die("cannot connect to the database");
if($db)
{
echo"Successfully connected\n";
}
$result=mysql_db_query("hum","select * from bio")
or die("cannot execute query");
?>
php is simple and can be used to connect to a db like this!