title: PHP Login Page with SESSION
body: <p>I have created a login page with php mysql. It is working fine but I do not understand a part of the code. I understand php session but cannot figure out what <code>$obj = @mysql_fetch_object($r)</code> means:</p>
  
  <pre><code>$r = mysql_query($q); 
  if ( $obj = @mysql_fetch_object($r) )
  {
      $_SESSION["valid_localid"] = $obj-&gt;id;
      $_SESSION["valid_localuser"] = $_POST["username"];
      $_SESSION["valid_localtime"] = time();
  
      Header("Location: homepage.php");
  }
  else
  {
      die("Sorry, could not log you in. Wrong login information.");
  }
  </code></pre>