hi i have one page where i will get Categories of Products and i want to make session of those Categories..But when i referesh page session break...my code is..
session_start();
$_Session['P_Category'] = $_GET['P_Category']; ////line 8
$P_Category =$_Session['P_Category'];
$query = "select * from tblProducts_info where P_Category = '$P_Category'";
$result = mysql_query($query);
if(!$result)
{
die('query:invalid Query: '.mysql_error());
}
and error comes that...
Notice: Undefined index: P_Category in C:\wamp\www\New\electronix\Breaks\Center_Content.php on line 8