
Untitled
By: a guest on
Jul 29th, 2012 | syntax:
None | size: 0.53 KB | hits: 10 | expires: Never
if($_POST['markasread']) {
#grab users details from db
$usersemailaddress = $_SESSION['email'];
$grabusersinformation = mysql_query("SELECT id, email, username FROM people WHERE email = '$usersemailaddress'") or die("Error Grabbing User's Information");
$iduser = mysql_fetch_assoc($grabusersinformation);
$time = time();
$markasread = mysql_query("UPDATE `people` SET `lastchecked` = '$time' WHERE user_id = '$iduser[id]'") or die("There was a problem marking your Mentions as read");
header('Location: '.$_SERVER['HTTP_REFERER']);