<?php
$PageSecurity = 11;
 include('includes/function_lib.php');
 include('includes/session.inc');
 
 $sql=DB_query("Select * from deptmaster where CompanyId=".$_GET['t'],$db);
 $data='';
 while($row=DB_fetch_array($sql))
 {
 	$data.='<option value="'.$row['id'].'">'.$row['deptname'].'</option>';
 }
 echo $data;
 ?>