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

$kode = $_POST[kode];
$text	= "SELECT * FROM akun_bp WHERE noakun= '$kode' ORDER BY noakun";
$sql 	= mysql_query($text);
$row	= mysql_num_rows($sql);
if ($row>0){
while ($r=mysql_fetch_array($sql)){		
	$data['naakun']	= $r[naakun];
	echo json_encode($data);
}
}else{		
	$data['naakun']	= '';
	echo json_encode($data);
}
?>