<?php
include "../../inc/inc.koneksi.php";

$kode	= $_POST['kode'];
$exp	= explode(";",$kode);
$koderm = $exp['0'];
$nourut	= $exp['1'];

$sql= mysql_query("SELECT * FROM retur_mbr WHERE kode_rm= '$koderm' AND no_urut='$nourut'");
$r  = mysql_fetch_assoc($sql);
$data['nourut']	= $r['no_urut'];
$data['kodest']	= $r['kode_st'];
$data['namast']	= $r['nama_st'];
$data['jmlunit']= $r['jml_unit'];
$data['satuan']	= $r['satuan'];
$data['hgbeli']	= $r['hg_beli'];
$data['keter']	= $r['keterangan'];
echo json_encode($data);
?>