Guest User

Untitled

a guest
Jul 29th, 2012
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. if($_POST['markasread']) {
  2.  
  3. #grab users details from db
  4.  
  5. $usersemailaddress = $_SESSION['email'];
  6. $grabusersinformation = mysql_query("SELECT id, email, username FROM people WHERE email = '$usersemailaddress'") or die("Error Grabbing User's Information");
  7. $iduser = mysql_fetch_assoc($grabusersinformation);
  8. $time = time();
  9.  
  10. $markasread = mysql_query("UPDATE `people` SET `lastchecked` = '$time' WHERE user_id = '$iduser[id]'") or die("There was a problem marking your Mentions as read");
  11.  
  12. header('Location: '.$_SERVER['HTTP_REFERER']);
Advertisement
Add Comment
Please, Sign In to add comment