INDEX.PHP
<script></script>
<script>
(function($){
$(document).on("keyup", "#karakter_skin",function(){
$.post( "ajax.php", { isim: $(this).val() } )
.done(function( data ) {
$("#result").html(data);
});
});
})(jQuery);
</script>
VERILER.PHP
$host = "localhost";
$kullanici = "root";
$pass = "";
$database = "deneme";
$db = mysqli_connect($host,$kullanici,$pass,$database);
$ka = $_POST['isim'];
$sql = mysqli_query($db,"SELECT * FROM kagit_tipleri WHERE id='$ka'");
foreach($sql as $item);
{
echo "