title: Is it possible to bind parameters to stored procedure in MYSQLi?
body: <p>I've been reading up on Stored Procedures &amp; MYSQLi from here <a href="http://php.net/manual/en/mysqli.quickstart.stored-procedures.php" rel="nofollow">http://php.net/manual/en/mysqli.quickstart.stored-procedures.php</a> </p>
  
  <p>and other sources, but am still unsure how to call a stored procedure with <code>?</code> (like a prepared statement)</p>
  
  <p><strong>Is it possible to bind parameters to a stored procedure, in something similiar to this:</strong></p>
  
  <pre><code>$mysqli-&gt;query("CREATE PROCEDURE p(IN id_var INT) BEGIN INSERT INTO test(id)
           VALUES(id_var); END;"))
  $mysqli-&gt;bindParam("i", $some_int);
  $mysqli-&gt;query("CALL p");
  </code></pre>