Warning: Cannot add header information - headers already sent by (output started at /home/deg4/d99kd/public_html/confirmRemove.php:2) in /home/deg4/d99kd/public_html/confirmRemove.php on line 15
This is the whole file from which i am getting the error
<?php
$db = mysql_connect("localhost", "d99kd", "pass");
mysql_select_db("d99kd",$db);
if($confirmDelete)
{
foreach($carToRemove as $thisCarToRemove)
{
$dbQuery="DELETE FROM cars WHERE carID='$thisCarToRemove'";
$result = mysql_query($dbQuery,$db);
}
}
header("Location: administratorHome.php");
?>
Does anyone know how I can get around this?