1
|
<html>
|
2
|
<head>
|
3
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
4
|
<title>Dictionary definition - Old Babylonian</title>
|
5
|
</head>
|
6
|
<body>
|
7
|
<FONT FACE='Arial Unicode MS' Color="#9bbad6">
|
8
|
<h2><center>Dictionary definition - Old Babylonian</center></FONT></h2>
|
9
|
<h3><FONT color=#8080ff face=Verdana size=4>List of items:</FONT></h3>
|
10
|
<?
|
11
|
$status = true;
|
12
|
@$connection = Pg_Connect ("user=dbowner dbname=klinopis");
|
13
|
if (!$connection)
|
14
|
{
|
15
|
echo "There are probably too many querries, please try again later!";
|
16
|
}
|
17
|
else
|
18
|
{
|
19
|
$popis2 = URLDecode ($chain);
|
20
|
echo ("<b>$popis2</b><BR>");
|
21
|
$pod1 = "(item='$popis2')";
|
22
|
if (@$result = @Pg_Exec (
|
23
|
"SELECT item, text1, text2, autor, datum FROM obdict WHERE ($pod1)"))
|
24
|
{
|
25
|
if (($pocethesel = @Pg_NumRows ($result)) > 0)
|
26
|
{
|
27
|
echo "<FONT FACE='Arial Unicode MS' SIZE=3>$pocethesel item(s) found.\n<BR>";
|
28
|
echo "<table border=0 bgcolor=\"#ecece6\" cellspacing=0 cellpadding=3>";
|
29
|
echo "<tr><td><FONT color=#8080ff size=3><small>item</small></td><td><FONT color=#8080ff size=4><small>provisional dictionary definition</small></FONT></td><td><FONT color=#8080ff size=4><small>last autor</SMALL></FONT></TD></tr>";
|
30
|
for ($i = 0; $i < $pocethesel; $i++)
|
31
|
{
|
32
|
List ($item, $text1, $text2, $autor, $datum) = Pg_Fetch_Row ($result, $i);
|
33
|
echo "<tr><td><FONT FACE='Arial Unicode MS' SIZE=3>$item</FONT> <td>$text1</td><td><small>$autor</small></td><td><small>$datum</small></td></tr>";
|
34
|
}
|
35
|
echo "</table>";
|
36
|
}
|
37
|
else
|
38
|
echo ("it looks like there is nothing!<br>");
|
39
|
}
|
40
|
else
|
41
|
echo ("Wow, sorry, too many queries, maybe try again later<br>");
|
42
|
Pg_Close($connection);
|
43
|
}
|
44
|
?>
|
45
|
<BR>
|
46
|
</FONT>
|
47
|
</body>
|
48
|
</html>
|