problem med confing.php
hej alle.jeg kan ikke forbindelse med datebasen.
config.php
/////////////////////
<?php
$host = "xxxxx";
$usename = "xxxxx";
$pass = "xxxxxx";
$db_name = "xxxxx";
$tbl_name = "nyhed";
mysql_connect("$host", "$usename", "$pass")or die("cannot connect");
mysql_select_db("$tbl_name")or die("cannot connect DB");
?>
///////////////////
<?php
include("config.php");
$tbl_name = "nyhed";
$sql="SELECT * FROM $tbl_name";
$result=mysql_query($sql);
?>
error-besked:
cannot connect DB
skrev jeg noget forkert?