<?php
require_once("menu.php");
if($HTTP_COOKIE_VARS[$yoneticiKullanici]!=$yoneticiKullanici) { exit('Giris yapilmadi!'); }
if($_GET['gid'])
{
$gid=$_GET['gid'];
mysql_query("UPDATE ilan SET vitrin=1 WHERE iid='.$gid.'"); or die(mysql_error());
echo "<script>alert('Aktif Edildi.');</script>";
echo "<script>location.href='vitrin.php';</script>";
}
?>kullandığım kod aynen bu