1 |
6daefa8c
|
Petr Lukašík
|
<html>
|
2 |
|
|
<head>
|
3 |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
4 |
|
|
<title>Description of the selected items from the Old Babylonian Corpus</title>
|
5 |
|
|
</head>
|
6 |
|
|
<body>
|
7 |
|
|
<FONT FACE='Verdana' Color="#9bbad6">
|
8 |
|
|
<h2><center>Anotation to selected text</center></FONT></h2>
|
9 |
|
|
<h3><FONT color=#8080ff face=Verdana size=4>We are eagerly working. Please have patience with us.</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 |
|
|
$pod1 = ("bookandchapterp like '$bookandchapter%'");
|
20 |
|
|
$dotaz = "SELECT * FROM obtextp WHERE $pod1";
|
21 |
|
|
if (@$result = @Pg_Exec($dotaz))
|
22 |
|
|
{
|
23 |
|
|
if (($pocethesel = @Pg_NumRows ($result)) > 0)
|
24 |
|
|
{
|
25 |
|
|
echo "<FONT FACE='Arial Unicode MS' SIZE=3>$pocethesel item(s) found.\n<BR>";
|
26 |
|
|
echo "<table border=0 bgcolor=\"#ecece6\" cellspacing=0 cellpadding=3>";
|
27 |
|
|
echo "<tr><td><FONT color=#8080ff size=3><small>book</small></td><td><FONT color=#8080ff size=4><small>description </small></FONT></td><td><FONT color=#8080ff size=4><small>chapter </small></FONT></td><td><FONT color=#8080ff size=4><small>book and chapter </small></FONT></td><td><FONT color=#8080ff size=4><small>autor </small></FONT></td><td><FONT color=#8080ff size=4><small>datum </small></FONT></td></tr>";
|
28 |
|
|
for ($i = 0; $i < $pocethesel; $i++)
|
29 |
|
|
{
|
30 |
|
|
List ($book, $chapter, $descriptionp, $bookandchapterp, $autor, $datum) = Pg_Fetch_Row ($result, $i);
|
31 |
|
|
echo "<tr><td>$book</td><td>$chapter</td><td>$descriptionp</td><td>$bookandchapterp</td><td>$autor</td><td>$datum</td></tr>";
|
32 |
|
|
}
|
33 |
|
|
echo "</table>";
|
34 |
|
|
}
|
35 |
|
|
else
|
36 |
|
|
echo ("it looks like there is nothing!<br>$bookandchapter");
|
37 |
|
|
}
|
38 |
|
|
else
|
39 |
|
|
echo ("Wow, sorry, too many queries, maybe try it again later<br>");
|
40 |
|
|
Pg_Close($connection);
|
41 |
|
|
}
|
42 |
|
|
?>
|
43 |
|
|
<BR>
|
44 |
|
|
</FONT>
|
45 |
|
|
</body>
|
46 |
|
|
</html>
|