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

Edit Site

facebook != ""){?>