Kod:
<?php ob_start();?>Kod:
<?phpKod:
includeKod:
(Kod:
'libs/mklab.php'Kod:
);Kod:
$idKod:
= mysql_real_escape_string(htmlspecialchars(trim(Kod:
$_POSTKod:
[Kod:
'malzeme_id'Kod:
])));Kod:
$urunKod:
= mysql_real_escape_string(htmlspecialchars(trim(Kod:
$_POSTKod:
[Kod:
'urun'Kod:
])));Kod:
$miktarKod:
= mysql_real_escape_string(htmlspecialchars(trim(Kod:
$_POSTKod:
[Kod:
'miktar'Kod:
])));Kod:
$sorguKod:
= mysql_query(Kod:
"update depo set urun='$urun', miktar='$miktar' where id='$id'"Kod:
);Kod:
ifKod:
(Kod:
$sorguKod:
) {Kod:
Kod:
echoKod:
'Kayıt başarıyla güncellendi. Listeleme sayfasına yönlendiriliyorsunuz.'Kod:
;Kod:
Kod:
header (Kod:
"refresh:2; url=index.php?sayfa=mal_duzenle"Kod:
);Kod:
}Kod:
elseKod:
{Kod:
Kod:
echoKod:
'Kayıt güncellenemedi. Listeleme sayfasına yönlendiriliyorsunuz.'Kod:
;Kod:
Kod:
header (Kod:
"refresh:2; url=index.php?sayfa=mal_duzenle"Kod:
);Kod:
}Kod:
?>Kod:
<?php ob_end_flush(); ?>