Whats wrong with it, config.php is correct and i can connect to the databace.
<?php
include("config.php");
$tbl_name="news"; // Table name
// Retrieve data from database
$sql="SELECT * FROM $tbl_name";
$result=mysql_query($sql);
// Start looping rows in mysql database...