Location: PHPKode > projects > MythPHP > MythPHPv1.0/www/admin/bankabilduzenlendi.php
<?php include 'header.php'; ?>
<div align="center">
<?php

include '../ayar.php';

$bhiddb = $_POST['bhidal']+0;
$bankad = $_POST['bankaad'];
$banksube = $_POST['subeadkod'];
$bankno = $_POST['hesapno'];
$bankino = $_POST['ibankod'];
$bankkisi = $_POST['hesapsahibi'];

function guvenlik($suz) {
$sansurle = array('CREATE','DELETE','SELECT','FROM','LIMIT','TABLE','MYISAM','*','ORDER','ASC','JOIN','BINARY','WHERE','<','>');
$editle = array('---','---','---','---','---','---','---','---','---','---','---','---','---','---','---');
$isle = str_replace($sansurle,$editle,$suz);

$safhal = mysql_real_escape_string($isle);

if(empty($safhal)){
@mysql_close();
}

return $safhal;

}

$bankaddb = guvenlik($bankad);
$banksubedb = guvenlik($banksube);
$banknodb = guvenlik($bankno);
$bankinodb = guvenlik($bankino);
$bankkisidb = guvenlik($bankkisi);

$sql = "UPDATE `$dbadi`.`bankabilgi` SET `bankaadi` = '$bankaddb', `hesapno` = '$banknodb', `iban` = '$bankinodb', `hesapsahibi` = '$bankkisidb', `subeadno` = '$banksubedb' WHERE `bankabilgi`.`id` = $bhiddb;";
 
if(mysql_query($sql)){
echo '<img src="img/meklendi.png" id="eklendi" alt="eklendi" width="48" height="48" /><br /> <h2>Banka Hesabý Baþarýyla Düzenlendi.</h2> <br />';
}else{
echo '<img src="img/meklenemedi.png" id="eklendi" alt="eklendi" width="48" height="48" /><br /> <h2>Banka Hesabý Düzenlenemedi.</h2> <br />';
echo mysql_error();
}
?>
</div>
<?php include 'footer.php'; ?>
Return current item: MythPHP