I have the following code, what I'd like for it to do is redirect to a page after the function is complete. Right now it does delete the item, but doesn't go to the header page:
<?
// includes
include("connecetion.php");
// open database connection
$connection = mysql_connect($host, $user, $pass) or die ("Unable to connect!");
// select database
mysql_select_db($db) or die ("Unable to select database!");
// generate and execute query
$query = "DELETE FROM news WHERE news_id='" . $_GET['news_id'] . "'";
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
// close database connection
mysql_close($connection);
header ( "http://www.xxxxxxxx.com/admin/" );
?>