Re: Pulling a data from array of checkboxes
| From: | Adam Royle | Date: | Sun, 28 Jul 2002 22:18:41 +0000 |
| Subject: | Re: Pulling a data from array of checkboxes | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-20848@lists.php.net to get a copy of this message | ||
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