title: MySQLi prepared statement not binding integer
body: <p>I'm new to prepared statements. Sql query is working fine if i insert dummy data and it is working without binding the integer($id).</p>
  
  <p>Where am i wrong?</p>
  
  <pre><code>sql = "UPDATE staff_type SET s_type=?, description=? WHERE s_type_id=?;";
  $stmt = mysqli_stmt_init($conn);
  mysqli_stmt_prepare($stmt, $sql));      
  mysqli_stmt_bind_param($stmt, "ssi", $type, $desc, $id);        
  mysqli_stmt_execute($stmt);
  </code></pre>