Projekt

Obecné

Profil

Stáhnout (1.74 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
require_once('dbconfig.php');
14

    
15
$conn = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
16
$conn->set_charset("utf8");
17
$conn->query("SET collation_connection = utf8_czech_ci");
18

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

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