<?php
require('mysql_report.php');
$checkbox = $_GET['checkbox'];
//geting Array of values from GET methode
foreach ($checkbox as $value)
{
$sql="SELECT name,address,email,problem,reply_query FROM query where id = $value ";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)){
}
$pdf = new PDF('L','pt','A4');
$pdf->SetFont('Arial','',12);
$pdf->connect('localhost','uname','pwd','mydb');
$attr = array('titleFontSize'=>18, 'titleText'=>'Report');
$qry=$pdf->mysql_report($sql,false,$attr);
}
$pdf->Output();
?>
here is the code i got the array of values from $_GET['checkbox']; how i got the pdf while the selected check boxes