title: how to use mysqli_real_escape_string for $_GET['page']
body: <p>I am using a pagination for a guestbook and i want to protect the 'page' with real escape string
  This is what i have now:</p>
  
  <pre><code>$page = (int)(!isset($_GET["page"]) ? 1 : $_GET["page"]);
  </code></pre>
  
  <p>If tried this but the paginations seems not to work anymmore:</p>
  
  <pre><code>$page = (int)(!isset($_GET["page"]) ? 1 : mysqli_real_escape_string($_GET["page"]));
  </code></pre>
  
  <p>What should i do to make this work?</p>