I cant seem to think of a way of doing this, so that the manager viewing the admin area gets notified by an alert when a new report has been added.
When the manager logs in there are already reports there, then when the page refreshes if a new report comes through how do you know that to create an alert.
I understand that there might be a new ID in the database, but how do you grab the ID of the current newest report, and then compare it on refresh and then when a new report comes in when the page refreshes how do you compare the two to know that there a more current one there.
These are the two scripts looking for the new reports@
<? $a=mysql_query("select count(UniqueIdentifier) as total1 from hazzard where HazardorNearMiss=''");
$a=mysql_query("select UniqueIdentifier, Name, Employerofperson, Location, DateOccured, HazardorNearMiss from hazzard WHERE HazardorNearMiss='' ORDER by UniqueIdentifier DESC");