Notice: Undefined variable: _post in C:\wamp\www\new\view.php
iam getting this warning in update and view ...my table is nt retrived also what is problem i cant find help me out ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[
www.w3.org];
<html xmlns="[
www.w3.org];
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table align="center" border="1">
<tr><td><a href="addemp.php">ADD EMPLOYEE</a></td><td><a href="wel.php">VIEW EMPLOYEE</a></td></tr>
</table>
<br />
<?php
// Connects to your Database
$id=$_GET['id'];
include ("db.php"
;
$results = @mysql_query("SELECT * from list where id='$id'"
or die(mysql_error());
Print "<table bgcolor='blue' border cellpadding=3 width='760' align='center'>";
Print"<tr><td colspan='9' align='center' id='success'>";
if(isset($_GET['success']))echo $_GET['success'];
Print" </td>";
Print"</tr>";
Print"<tr><td colspan='9' align='center' id='failed'>";
if(isset($_GET['failed']))echo $_GET['failed'];
Print"</td>";
Print"</tr>";
Print"<tr bgcolor='#999999'><td><b>ID</b></td>";
Print"<td><b>FirstName</b></td>";
Print"<td><b>LastName</b></td>";
Print"<td><b>Department</b></td>";
Print"<td><b>email</b></td>";
$i=1;
while($row = mysql_fetch_array( $results))
{
Print "<tr>";
Print "<td>".$i. "</td> ";
Print " <td>".$row['firstname'] . "</td> ";
Print " <td>".$row['lastname'] . " </td>";
Print " <td>".$row['department'] . " </td>";
Print " <td>".$row['email']. " </td>";
"</tr>";
echo '<td align="center"><a href="viewdetail1.php?id='.$id.'">view</a></td>
<td align="center"><a href="editdetail.php?id='.$id.'">Edit</a> </td> </tr>';
$i++;
}
Print "</table>";
?>
</body>
</html>