please guys I’m beginer in php so I need your help in this problem in my code
I want to views the infor of the email in my customer page without affect the page of admin
that code is shown below.
so how can write the query for mysql to retrive the session customerid
[php]//<?php
include(“header.php”);
include(“dbconnection.php”);
if(isset($_GET[“mailid”]))
{
mysqli_query($con,“DELETE FROM mail where mailid=’$_GET[mailid]’”);
$recres = “Mail deleted Successfully…”;
}
// this is line of the error take place
$result = mysqli_query($con,“SELECT * FROM mail where reciverid=’$_SESSION[adminid]’”);
?>
<div id="templatemo_main">
INBOX
<?php global $recres; echo $recres; ?><?php[/php]
this is error occor in the page I want to resolve it
//Notice: Undefined index: adminid in C:\xampp\htdocs\design\mailinbox.php on line 9