1 |
6daefa8c
|
Petr Lukašík
|
<?
|
2 |
|
|
include "autorizace.inc.php";
|
3 |
|
|
ksa_authorize();
|
4 |
|
|
//if ($auth_level == 0) ksa_unauthorized();
|
5 |
|
|
if ($auth_level < 10) ksa_unauthorized();
|
6 |
|
|
?>
|
7 |
|
|
<HTML>
|
8 |
|
|
<META http-equiv=Content-Type content=text/html; charset=utf-8>
|
9 |
|
|
<head>
|
10 |
|
|
<title>Delete an entry from the Old Babylonian dictionary</title>
|
11 |
|
|
</head>
|
12 |
|
|
|
13 |
|
|
<body>
|
14 |
|
|
<h3><center>Delete an entry from the old version</center></h3>
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
<?
|
18 |
|
|
do
|
19 |
|
|
{
|
20 |
|
|
@$connection = Pg_Connect ("user=dbowner dbname=klinopis");
|
21 |
|
|
if (!$connection):
|
22 |
|
|
echo "Nepoda詬o se p詰ojit k databẩ!";
|
23 |
|
|
break;
|
24 |
|
|
endif;
|
25 |
|
|
@$result = Pg_Exec(
|
26 |
|
|
"delete from obdict WHERE oid=$co");
|
27 |
|
|
if (!$result):
|
28 |
|
|
echo "Doڬo k chyb젰詠zpracovᮭ SQL dotazu!";
|
29 |
|
|
break;
|
30 |
|
|
endif;
|
31 |
|
|
echo "$oid, $item was deleted!";
|
32 |
|
|
</body>
|
33 |
|
|
</html>
|