ClkOfis adlı üyeden alıntı



$(document).on("change",".updateinput ", function () {
$.ajax({
url: URL,
type: 'POST',
success: function(e)
{

},
data: {guncelle: $(this).data('update')},
});
});



URL php


$exp = explode('-',$_POST['guncelle]);

$guncelle = $db->prepare("UPDATE $exp[0] SET $exp[1]=:sinav1 WHERE ogrenci_id=:ogrenci_id ");

$guncelle->execute(array(':sinav1'=>$exp[1] ,':ogrenci_id'=>$exp[2] ,));


Uyguluyabileceğimi düşünmüyorum.