This is friendlier, cleaner and faster way to return the results.

$chk = implode(", ", $chk);
$sql = "SELECT field1, field2 FROM tblName WHERE ID IN ($chk) ORDER BY ID";

this should bring back all the records within one resultset, which is easier
to manage

Adam


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to