<?php
include "../config.php";
$nomr 	= $_POST['nomr'];
if($nomr == '')
{
	exit;
}
else
{
	$nama = "SELECT * FROM pasien WHERE nomr ='$nomr'";
	$result = mysqli_query($conn,$nama);
	while($datasubkat = mysqli_fetch_array($result))
	{
	    echo "<option value='".$datasubkat['nama']."'>".$datasubkat['nama']."</option>\n";
	}
}
?>