hi guy
. I need help in this my mailbox code below
. I want to use this user id
…customerid
…adminid
…employeeid
.to view the information in the database table when one among them session start or login in same page
.what query and condition I can be use?
[php]<?php
session_start();
include(“header.php”);
include(“dbconnection.php”);
if(isset($_GET[“mailid”]))
{
mysqli_query($con,“DELETE FROM mail where mailid=’$_GET[mailid]’”);
$recres = “Mail deleted Successfully…”;
}
$result = mysqli_query($con,“SELECT * FROM mail where reciverid=’$_SESSION[ ]’”);
?>
<div id="templatemo_main">
INBOX
<?php global $recres; echo $recres; ?><?php
?>[/php]