<?php
$noticeid=$_POST['nid'];
$uname=$_SESSION['user'];
include('db_connect.php');
$sql="SELECT * FROM notice WHERE nid='$noticeid'";
$data=mysql_query($sql);
$d = mysql_fetch_assoc($data);
$notice=$d['notice'];
echo $notice;
?>
When I am retrieving data its saying :
Notice: Undefined index: nid in C:\xampp\htdocs\sm\viewnotice.php on line 53
Wheres i am passing the varibale from previous page and its reflecting in browser too.
<a href='viewnotice.php?nid=$nid'>$ntitle</a>
Please suggest...