| 
 Posted by JDS on 10/07/05 22:42 
On Fri, 07 Oct 2005 08:33:51 +0200, Dikkie Dik wrote: 
 
> an array of checked items on the server. You can use the implode  
> function to convert it to a comma separated list if you want to. 
 
Example[1]: 
 
$sql = "SELECT * FROM boogers WHERE booger_id IN ( " 
       . join(",", $_REQUEST['booger_ids']) . " )"; 
 
(Note that that is all one line of PHP). 
 
You can use implode() instead of join() -- they are functionally identical. 
 
 
[1] Change "booger" to "bogie" for those from the UK. :) 
--  
    JDS | jeffrey@example.invalid 
        | http://www.newtnotes.com 
  DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/
 
[Back to original message] 
 |