title: PHP mySQL Simple Echo from SELECT
body: <p>I am trying to create a simple echo from a SELECT from DB.</p>
  
  <p>It echos blank always.</p>
  
  <p>Here is the code: </p>
  
  <pre><code>&lt;?php
  $username = "xxxx";
  $password = "xxxx";
  $hostname = "xxxx";
  
  $conn = mysqli_connect($hostname, $username, $password, "xxxx");
  
  if(! $conn ) {
      die('Could not connect: ' . mysqli_error());
  }
  
  $user = $_GET['user'];
  $pass = $_GET['pass'];
  
  $sql = "SELECT id FROM 'users' WHERE user='$user' AND pass='$pass'";
  $retval = mysqli_query($conn, $sql);
  
  
  
  echo($retval);
  
  
  mysqli_close($conn);
  ?&gt;
  </code></pre>
  
  <p>It would be greatly appreciated if someone could help and tell me what I am doing incorrectly :)</p>