PK

ADDRLIN : /home/anibklip/pcfcindia.com/bkp17/accounts/
FLL :
Current File : /home/anibklip/pcfcindia.com/bkp17/accounts/ajax_get_cat_report.php

<?php
	session_start();
	require_once '../common/common.php';
	require_once '../common/secure.php';
	include_once("connection.php");
	
	$id = $_GET['id'];
	if($_GET['type']=='income')
	{
		$sql = "SELECT id,name FROM income";
	}
	else if($_GET['type']=="expenditur")
	{	
		$sql = "SELECT id,name FROM expenditure";
	}	
	$result = mysql_query($sql);
	$str="";
	while($row=mysql_fetch_array($result))
	{
		$str=$str.$row['id'].":".ucfirst($row['name']).',';
	}
	echo $str;
?>


PK 99