title: Why is mysqli_insert_id returning me 0
body: <p>I actually read an answer here, the user says this happens when your table is not having any <code>autoincrement</code> column but am already having that, the other is connection is not established, but when I used this</p>
  
  <pre><code>if(!$running_db) {
      echo 'False';
  } else {
      echo 'true'; //Returns me true so connection is establised
  }
  </code></pre>
  
  <p>Than why it is returning me <code>0</code>? Actually am inserting on <code>page.php</code> and after successfully inserted user is redirected to <code>result.php</code> page where I am echoing out the id using <code>mysqli_insert_id</code> so that I can highlight the field but it returns me 0 and the table row is thus failing to highlight</p>
  
  <p>P.S Am using procedural way</p>