Installer wrote:Is that including the query? 🙂
$cityArray = array(
'Chicago', 'Springfield', 'Peoria', 'Decatur', 'Danville',
'New York City', 'Boston', 'Indianapolis', 'Des Moines',
'Atlanta', 'Pearl Harbor', 'Honolulu', 'Death Valley',
'Miami', 'South Hampton', 'Cuba', 'Moline', 'Rock Island',
'This is', 'getting stupid', 'so I will', 'quit now',
'ok?', 'ok!', 'really, ', 'you can', 'stop now', '!!!');
$arr = explode(' ', microtime());
$starttime = $arr[1] + $arr[0];
foreach ($cityArray as $key => $city) {
$allCities[$key] = '\'' . $city . '\'';
}
$allCities = implode(',', $cityArray);
$sql = "SELECT * FROM cal WHERE city IN ($allCities)";
echo $sql . '<hr>';
$arr = explode(' ', microtime());
$endtime = $arr[1] + $arr[0];
echo ( 'Installer\'s method loaded in <b>'.number_format(($endtime - $starttime), 7).'</b> seconds.<br />' );
EDIT: BTW, glad we could help. If we've solved your problem, don't forget to mark the thread resolved.