$value) { $protectie[$key] = filter($value); } $id = $protectie['id']; $dbres = mysql_query("SELECT * FROM `surf` WHERE `id`='{$id}' AND `user`='{$data->id}'"); $data2 = mysql_fetch_object($dbres); if(isset($_POST['edit']) && $data2->id != ""){ mysql_query("UPDATE `surf` SET `title`='{$_POST['title']}', `cpc`='{$_POST['cpc']}', `active`='{$_POST['status']}' WHERE `id`='{$data2->id}'"); $mesaj = "
Site successfully changed!
"; } ?>
login)) {?>

Edit Site

id != ""){?>