title: Looping mysqli Query Within bind_param() & mysqli_prepare() not Possible?
body: <p>I wonder if the new system [ mysqli_prepare() &amp;  bind_param()  ] has not removed part of  the flexibility we use to have when coding.
  For  trying to upgrade a full well working website to this new level (rewriting all the classes), I'm just  facing some limits.
  How would the following code  now be handled within   bind_param() &amp; mysqli_prepare() ?</p>
  
  <p>Code:</p>
  
  <pre><code>$array= array(1,2,3); // this array is unlimited
  
      $sql="  SELECT   price  FROM ".self::$table." WHERE name='X' ";
      foreach($array as $num):
      $sql .=" OR position='".$num."' ";
      endforeach;
      $sql .= "group by price";
  </code></pre>
  
  <p>How now inside ?</p>
  
  <pre><code>$stmt=   mysqli_prepare($this-&gt;connection,$sql); // ???
  $stmt-&gt;bind_param(); // ???
  </code></pre>