title: PHP Warning: A non-numeric value encountered
body: <p>I'm getting the following error "PHP Warning:  A non-numeric value encountered on line 11". The following code is for a pagination. I have tried everything I know, not sure what else to do. Any help is appreciated.</p>
  
  <pre><code>8 $rowsPerPage = 20;
  9 if(isset($_GET['page'])){$pageNum = $_GET['page'];}
  10 if(empty($pageNum)) {$pageNum = 1;}
  11 $offset = ($pageNum - 1) * $rowsPerPage;
  </code></pre>