Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
find-nip.php
<?php
include('_connection.php');
$nip = $_GET['nip'];
$qry = mysqli_query($connection, "SELECT * FROM pegawai where nip='$nip'");
$pgw = mysqli_fetch_array($qry);
$data = array(
'nama_pegawai' => $pgw['nama_pegawai'],
'alamat' => $pgw['alamat']
);
echo json_encode($data);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.