<?php 
	$id = $_GET['id'];
	
	require_once('dbConnect.php');
	
	$sql = "SELECT * FROM label_printer WHERE sl_no=$id";
	$r = mysqli_query($con,$sql);
	
	$result = array();
	
	$row = mysqli_fetch_array($r);
	array_push($result,array(
			"id"=>$row['sl_no'],
			"mobile_no"=>$row['mobile_no'],
			"cust_id"=>$row['cust_id'],
			"status"=>$row['status'],
			"printer"=>$row['printer'],
			"design"=>$row['design'],
			"prn"=>$row['prn'],
		field1=>$row['field1'],
field2=>$row['field2'],
field3=>$row['field3'],
field4=>$row['field4'],
field5=>$row['field5'],
field6=>$row['field6'],
field7=>$row['field7'],
field8=>$row['field8'],
field9=>$row['field9'],
field10=>$row['field10'],
field11=>$row['field11'],
field12=>$row['field12'],
field13=>$row['field13'],
field14=>$row['field14'],
field15=>$row['field15'],
field16=>$row['field16'],
field17=>$row['field17'],
field18=>$row['field18'],
field19=>$row['field19'],
field20=>$row['field20'],
field1p=>$row['field1p'],
field2p=>$row['field2p'],
field3p=>$row['field3p'],
field4p=>$row['field4p'],
field5p=>$row['field5p'],
field6p=>$row['field6p'],
field7p=>$row['field7p'],
field8p=>$row['field8p'],
field9p=>$row['field9p'],
field10p=>$row['field10p'],
field11p=>$row['field11p'],
field12p=>$row['field12p'],
field13p=>$row['field13p'],
field14p=>$row['field14p'],
field15p=>$row['field15p'],
field16p=>$row['field16p'],
field17p=>$row['field17p'],
field18p=>$row['field18p'],
field19p=>$row['field19p'],
field20p=>$row['field20p'],
header=>$row['header'],
footer=>$row['footer'],
fixedtext=>$row['fixedtext'],
copies=>$row['copies'],
copiesp=>$row['copiesp'],



		
					
		
			
			
		));

	echo json_encode(array('result'=>$result));
	
	mysqli_close($con);