title: FMDB - Select statement using an array of values
body: <p>The array (arrayBottleID3) has a variable amount of INT values.  I want to return (results / arrayBottleNames) to return the results.</p>
  
  <p>arrayBottleID3 may have 3 INT values, I don't want to have to do 3 different query statements.  I don't know what values or how many arrayBottleID3 has.</p>
  
  <p>arrayBottleID3 could have 1 or 100 INT values.  </p>
  
  <p>Below does not work.  I get errors or it doesnt return anything.</p>
  
  <p>I just dont know what the exact syntax is for using withArugmentsInArray.
  I know it isn't .. bottleID = ? or bottleID (?).</p>
  
  <p>Can someone please show me an example?</p>
  
  <pre><code>[self OpenDB]    
  
  
   results = [database executeQuery:@"SELECT friendlyname FROM Inventory WHERE bottleID = ?" withArgumentsInArray:@[arrayBottleID3]];
  
  while([results next])
  {
      [arrayBottleNames addObject:[results stringForColumn:@"friendlyname"]];
  
  }
  
  [database close];
  
  NSLog(@"count %d", [arrayBottleNames count]);
  NSLog(@"Names: %@",arrayBottleNames);
  </code></pre>