title: Mysql IN() not working
body: <p>I have a checkbox form which passes an array of id values. I then implode the array like this:</p>
  
  <pre><code>$ship = $_POST['result'];
  $array=implode(",", $ship);
  $shipping=ship_update($array);
  </code></pre>
  
  <p>The Mysql query function looks like this:</p>
  
  <pre><code>function ship_update($array){
      global $MEMS;
      echo $array;
      $query="SELECT * FROM Inventory
          WHERE MEMS_ID IN ('$array')
              ORDER BY WAFER ASC, RC ASC";
      $shipping=$MEMS -&gt; exec($query);
      return $shipping;
  }
  </code></pre>
  
  <p>When I run this code, $shipping returns an empty query. What am I doing wrong?</p>