i have an array like - selected_id=1,2,3,4,5,6,7
when i post the form, second form get this variable and i dont want to use this
foreach($nArray=split(',',$jsstore[0]) as $element)
{
if(!empty($where_statement))
{
$where_statement.=" OR";
}
$where_statement.=" ID=$element";
}
i only want to make my sql query like
select field from table where id = $where_statement
in variable $where_statement i mean this (1,2,33,24,533,6001,4)
thanks