what is the problem of this code? the error is "Cannot modify header information - headers already sent by (output started at /usr/home/domains/....."
<?
foreach ($_POST["file_id"] as $file_id)
{
require("bas.inc");
$db = mysql_pconnect($dbhost, $dblogin, $dbpass) ;
mysql_select_db($dbname, $db);
$query="DELETE FROM attorney_info WHERE atto_id='$file_id'";
$list = mysql_query($query,$db);
}
header("location:view.php")
?>
thanks