hi every body
I have written a code for deletion of records from database.
my navigation path is like this
1. member.php (for selecting the delete option from menu)
2. deleteadministrator.php ( for entering id of customer and search for the record if reord found then to click on delete button)
3. deleteadministratorexe.php ( after clicking on button in deleteadministrator.php it executes the deletion sql code written in deleteadministratorexe.php)
Till this point every thing is fine but when I am trying to redirect the page after deleting the record from deleteadministratorexe.php to member.php I am getting an ERROR -
"Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\pamanet\deleteadministratorexe.php:12) in C:\wamp\www\pamanet\deleteadministratorexe.php on line 29"
Here is my deleteadministratorexe.php code-
<?php
require_once('security.php');
$str = $_GET['id'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Member Index</title>
<link href="loginmodule.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style5 {
color: #CC0000;
font-weight: bold;
}
-->
</style>
</head>
<body>
<h1>Welcome <font color="#FF6600"><?php echo $_SESSION['loginname'];?></font></h1>| <a href="logout.php">Logout</a>
<p>This is a password protected area only accessible to members. </p>
<?php
include('show.php');
require_once('connection.php');
$qry = "delete from `users_table` where cust_id='$str'";
$result = mysql_query($qry);
header('Location: http://localhost/pamanet/member.php');
?>
<p> </p>
</body>
</html>
Please help me in solving this error.
Thanx in advance