Can someone help me to fix this problemmm pleasee.
Notice: Undefined index: id in C:\xampp\htdocs\draft3\Edit.php on line 4
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\draft3\Edit.php on line 6
Edit.php
<?php include'e.php';
if(!isset($_POST['submit']))
{
$q="SELECT * FROM myaduan WHERE id= $_GET[id]";
$result=mysql_query($q);
$myaduan=mysql_fetch_array($result);
}
?>
<h1>You are Modifying A user</h1>
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
Name<input type="text" name="inputName" value="<?php echo $myaduan['nama_pengadu'];?>"></br>
Complaints<input type="text" name="inputDesc" value="<?php echo $myaduan['aduan_details'];?>"/>
<br/>
<input type="hidden" name="id" value="<?php echo $_GET['id'];?>">
<input type="submit" name="submit" value="Modify">
</form>
<?php
if (isset($_POST['submit']))
{
$u="UPDATE myaduan SET nama_pengadu='$_POST[inputName]', aduan_details'$_POST[inputDec]'
WHERE ID=$_POST[id]";
mysql_query($u) or die (mysql_error());
echo "User has been modified!";
header ("Location:main.php");
}
?>