<?php 
session_start();
include('../includes/dbcon.php');

$str=" ";

$data = array();

$edate=date("Y-m-d");
$userid=$_SESSION['rm_id'];

if (isset($_POST['tran_no'])) {
 	$tran_no = trim($_POST['tran_no']);
 	//$tran_no = 130;
 	//echo $grnd_no;
	        	$sqlsp=mysqli_query($con,"SELECT  * from view_stock_trans_temp_detail where tran_id=$tran_no  ")or die(mysqli_error($con));
	        	$count=mysqli_num_rows($sqlsp);	
	        	if ($count>0) {
	        		while($rowsp=mysqli_fetch_array($sqlsp)){			
					 $data[]=$rowsp;				
				   }	

				    echo json_encode($data);
	        	}//	if ($count>0) {
exit();
	        	 //echo 'hello';
	  


} ///// if (isset($_POST['category'])) {

?>