Projekt

Obecné

Profil

Stáhnout (1.71 KB) Statistiky
| Větev: | Tag: | Revize:
1
<html>
2
<head>
3
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4
    <title>Selected items from the Old Babylonian Dictionary</title>
5
</head>
6
<body>
7
<FONT FACE='Verdana' Color="#9bbad6">
8
    <h2>
9
        <center>Selected items from the Old Babylonian Dictionary</center>
10
</FONT></h2>
11
<h3><FONT color=#8080ff face=Verdana size=4>List of items according to previous selection</FONT></h3>
12
<?php
13
$conn = new mysqli("filek.cz", "dbowner", "", "aswi-klinopis");
14
$conn->set_charset("utf8");
15
$conn->query("SET collation_connection = utf8_czech_ci");
16

    
17
if ($conn->connect_error) {
18
    die("Connection failed: " . $conn->connect_error);
19
}
20
$chain = $_GET["chain"];
21

    
22
echo "<FONT FACE=\"Arial Unicode MS\">Searched item: <b>$chain</b>&nbsp;</FONT><BR>";
23
$query = "SELECT item, type, text1, autor, datum FROM obdict WHERE item LIKE '%$chain%' ORDER BY item ASC";
24
$result = $conn->query($query);
25
if ($result->num_rows > 0) {
26
    echo "<FONT FACE=\"Arial Unicode MS\" SIZE=3>$result->num_rows item(s) found.\n<BR>";
27
    echo "<table border=1 bgcolor=\"#ecece6\" cellspacing=0 cellpadding=3>";
28
    echo "<tr><td><FONT color=#8080ff size=2>dictionary item</td><td><FONT color=#8080ff size=2>class</FONT></td><td><FONT color=#8080ff size=3>provisional dictionary definition</FONT></td><td><FONT color=#8080ff size=1>last author</FONT></TD></tr>";
29
    for ($i = 0; $i < $result->num_rows; $i++) {
30
        list($item, $type, $text1, $autor, $datum) = mysqli_fetch_row($result);
31
        echo "<tr><td>$item</td><td>$type<td>$text1</td><td><small>$autor</small></td></tr>";
32
    }
33
    echo "</table>";
34
}
35
mysqli_close($conn);
36
?>
37
<BR>
38
<P><A HREF="/utf/obdictabbr.php" TARGET=_blank>Click here to see a list of used abbreviations.</A></P>
39
</FONT>
40
</body>
41
</html>
(67-67/135)