<?php
include "../../inc/inc.koneksi.php";
$noakun	= $_POST['noakun'];
$text	= "SELECT * FROM akun_bb WHERE noakun= '$noakun'";
$sql 	= mysql_query($text);
$row	= mysql_num_rows($sql);
if ($row>0){
	while ($r=mysql_fetch_array($sql)){	
		$data['naakun']	= $r[naakun];
		$data['level']		= $r[level];
		$data['nosub']	= $r[nosub];
		$data['nogol']	= $r[nogol];
		$data['kode']	= $r[kode];
		$data['tglawal']= $r[tgl_awal];
		$data['tglakhir']= $r[tgl_akhir];
		$data['akses']	= 1;
		echo json_encode($data);
	}
}
?>