<div class="solust"></div> <div class="sagust"></div> <div id="elkatek"> <div id="top_area"> <div id="header"> <div id="logo"><a href="anasayfa"><img boyd=""<img border="0" onmouseout="this.src='images/logo.png';" onmouseover="this.src='images/logo22.png';" alt="" src="images/logo.png" /></a></div> <div id="right"> <div id="sepet"> <span class="s1"> <div id="basketTitleWrap"></div> <a href="sepet"><?php echo SEPET1; ?> <strong><span id="basketItemsWrap"><?php echo $fonks->sepet($sessionID); ?> </span></strong> <?php echo SEPET2; ?> </a> </span> </span> <div class="sepet-maske"><a href="sepet"><img src="images/sepet-maske.png" /></a></div> </div> <div class="clear"></div> <div id="menu"> <a href="webtasarim" <?php echo $fonks->menu(2, $incs['aktif'], 'class="active"', 'class="m1"'); ?>
<?php session_start(); error_reporting(0); if (!isset($_POST['urunID']) || empty($_POST['urunID']) || !isset($_POST['kat']) || empty($_POST['kat']) || !isset($_POST['toplam']) || empty($_POST['toplam'])) { exit; } else { include '../../library/Elkatek_Connection.php'; include '../../library/guvenlik.php'; include '../../library/functions.php'; $fonks = new yeniyol(); function temizle($veri) { return trim(strip_tags(mysql_real_escape_string($veri))); } $say = mysql_num_rows(mysql_query("SELECT id FROM sepet WHERE sepet='" . temizle($sessionID) . "' AND urun='" . intval($_POST['urunID']) . "'")); if ($say > 0) { $guncelle = mysql_query("UPDATE sepet SET adet=adet+" . intval($_POST['toplam']) . " WHERE sepet='" . temizle($sessionID) . "' AND urun='" . intval($_POST['urunID']) . "' LIMIT 1"); } else { $kayit = mysql_query("INSERT INTO sepet VALUES(NULL,'" . date("Y-m-d") . "','" . temizle($sessionID) . "','" . intval($_POST['kat']) . "','" . intval($_POST['toplam']) . "','" . intval($_POST['urunID']) . "','')"); } echo $fonks->sepet(temizle($sessionID)); $baglan->kapat(); }