Current File : /home/inlingua/www/icentex/in-centre/main_ajax.php
<?php
// Include the database connection details
require('../dbConnection.php');

// Include common functions
require('../commonFunc.php');

// Include common functions
require('../globalVars.php');

// Include the table handler class
require('../dbHandler.class.php');

$id=$_REQUEST['CID'];
 $targetid=$_REQUEST['targetid'];
$t1=explode("prodcat",$targetid);
//print_r($t1);
$tid=$t1[1];
$t2="".$tid."";


	$subprodcat= new dbHandler();
        $subprodcat->connect();
        $query_subprodcat="select recNo,bill_details from ingl_billing_main where bill_category='".$id."' order by bill_details";
		
        $result_subprodcat=$subprodcat->select($query_subprodcat);
		$subprodcat_array=array();
		
		while($data_subprodcat=$subprodcat->SelectNext($result_subprodcat))
              {
			  $subprodcat_array[''.$data_subprodcat[recNo].'']=$data_subprodcat['bill_details'];
			  
			  
			 }
			   
			  $subprodcat_selected="";
			  $subprodcat_extra=' style="width:130px;" onchange="checkdup(this);ajax_spec(this.value,\''.$t2.'\');" id="target'.$id.'" class="nodupli"';
			  
			  
			  
			  echo select_drop($subprodcat_array,'product[]','--  Select Product  --',0,$subprodcat_selected,$subprodcat_extra);
			  //print_r($customer_array);
			  
			  



?>