<?php
mysql_connect("localhost", "root", "") or die("Neįmanoma prisijungti. Klaida: ".mysql_error());
mysql_select_db("cb_db");
if (!isset($_GET) || !is_num($_GET['id'])) { die("debilas hakeris"); }
if (mysql_query("DELETE FROM `dienorastis` WHERE Id='".$_GET['id']."'")) {
die("Sekmingai istryniau");
} else {
die("kazkas negerai");
}
?>