I am sorry, but I do not really understand your probs :-(
1.)
<em>$connection = mysql_connect("localhost" , "user" , "password");
$db = mysql_select_db("news" , $connection);
$query = "SELECT * FROM news ORDER BY id DESC LIMIT 5";
$result = mysql_query($query);</em>
I am not such a pro, but shouldn´t this better look like this:
<em>$result = mysql ("news", "SELECT * FROM news ORDER BY id DESC LIMIT 5");
$num_rows = mysql_num_rows ($result);
for ($row = 0; $row < $num_rows; $row ++) {
....
}</em>
2.)
show_news.php:
<em>$result = mysql ("news", "SELECT * FROM news WHERE id = '$id'");</em>
You will now find your news in the row number 0.
<b>In my opinion you should make some exception handling. For example:
if ($connection) {
go one with script
}
else {
make error message and die
}
</b>