hii guys
I’m beginer I have one page of mailsent I want to uses this for both customer and administrator
to veiws information from the database.so what is the right way of writening a query to avoid error
because when I write this query “$result = mysqli_query($con,“SELECT * FROM mail where senderid= ‘$_SESSION[customerid]’”);”
when customer start session on login has no error but when I login as admin this error occours
//
Notice: Undefined index: customerid in C:\xampp\htdocs\design\mailisent.php on line 11
the same error occour when I change it to adminid in the customer page when its login
//
Notice: Undefined index: adminid in C:\xampp\htdocs\design\mailisent.php on line 11
please i need yoour help my code is below
//code
[php]
<div id="tem_main">
Sent Mails
<?php global $recres; echo $recres; ?>Delete | "; echo "SENDER | "; echo "SUBJECT | "; echo "TIME | "; echo "
---|---|---|---|
Delete | "; echo "$row[senderid] | "; echo "$row[subject] | "; echo "$row[mdatetime] | "; echo "