Exlode in php for DataBase
<p>I am passing the check box value in url <code>like selected.php?aa=2,3,</code> and i want get the 2 and 3 value from datebase when i explode its not working</p>

<pre><code>$mainclass=$_GET['aa'];  
$classarray = list($class) = explode(",", $mainclass);  
$classa = implode(',', $classarray);  
$makefeed = mysql_query("SELECT dbid FROM studentnew WHERE dbid IN ('".$classa."')");  
while ($cc = mysql_fetch_array($makefeed))   {  
  // code
  echo $cc['name'];
}
</code></pre>
