title: Array in SQL Query?
body: <p>i have a problem making a SQL Query with an array in my WHERE clause.</p>
  
  <p>For example:</p>
  
  <p>My Array:</p>
  
  <pre><code>$myarray[1] = "hi";
  $myarray[2] = "there";
  $myarray[3] = "everybody";
  </code></pre>
  
  <p>My MySQL Statement:</p>
  
  <pre><code>SELECT * FROM myTable WHERE title='".$myarray[]."'
  </code></pre>
  
  <p>Is there any way to realize that?
  I solved it myself like this:</p>
  
  <pre><code>for(...) {
  $where = $where." title='".$myarray[$count]."' OR ";
  }
  $where = substr($where , 0, -3);
  .....
  SELECT * FROM myTable WHERE ".$where."
  </code></pre>
  
  <p>But if i had thousands of entries in my array, the SQL Statement would be too big and slow, right?</p>
  
  <p>Thanks</p>