My calendar program was jus working perfectly....until I started modifying the looks. I began to put different colors for the background and stuff when my delete page stopped working. I don't know what I did and the page started displaying this error:-
Warning: Cannot add header information - headers already sent by (output started at /usr/local/nusphere/apache/nsdocs/delete.php:13) in
/usr/local/nusphere/apache/nsdocs/delete.php on line 29
what have happened?
This the delete code:-
<?
include("config.php");
// open a connection to the database
$connection = mysql_connect($server, $user, $pass);
// formulate the SQL query - same as above
$query = "DELETE FROM calendar WHERE id='$id'";
// run the query on the database
// assume the database is named "php101"
$result = mysql_db_query($db,$query ,$connection);
// close connection
mysql_close($connection);
header("Location: day.view.php?currYear=" . $currYear . "&currMonth=" . $currMonth . "&currDay=" . $currDay);
?