yelvington is right. Error handling can be the most extensive coding job on any site. Depending on how many variables you ar passing can determine this.
For example '?news=54' does not exist.
Well if this news is being read from a DB, then you can simply add a few lines on code to your existing result to see if the news ID exists or not.
require('admin/mysql_config.php');
$dbconn = mysql_connect("localhost", "$dbuser", "$dbpassword")
or die();
$result = mysql_select_db("$dbname", $dbconn)
or die();
$query = "SELECT * FROM table";
$result = mysql_db_query("$dbname", $query);
if ($result) {
$numOfRows = mysql_num_rows($result);
if ( $numOfRows < "1" ) {
//this is where you do your error handling:
//this would determine that there is no row by the id '54'
echo "The requested id does not exist!";
echo "<META HTTP-EQUIV=\"refresh\" content=\"5; URL=redirect_url.php\">";
} else {
for ($i = 0; $i < $numOfRows; $i++){
$news_id = mysql_result ($result, $i, "news_id");
//echo your results
}
}