Projekt

Obecné

Profil

Stáhnout (1.8 KB) Statistiky
| Větev: | Tag: | Revize:
1
<HTML>
2
<HEAD>
3
    <META content="text/html; charset=utf-8" http-equiv=Content-Type>
4
    <TITLE>List of OB signs in the scope of OB Graphemic Analyses Project</TITLE>
5
    <LINK REL=StyleSheet HREF="/utf/obtc1.css" TYPE="text/css" MEDIA="screen, print">
6
</HEAD>
7
<body>
8
<H3 align=center>Selected variants <BR>from<BR> the Old Babylonian Graphemic Analyses</H3>
9
<br>
10
<?php
11
require_once('dbconfig.php');
12

    
13
$conn = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
14
$conn->set_charset("utf8");
15

    
16
if ($conn->connect_error) {
17
    die("Connection failed: " . $conn->connect_error);
18
}
19
echo "<FONT FACE='Arial Unicode MS' SIZE=3><BR>";
20
$chain = $_GET["borger"];
21

    
22
$query = "SELECT gnazev, lcteni, scteni, bcislo01 FROM graf01 WHERE gnazev like ' $chain%'";
23
$result = $conn->query($query);
24

    
25
if ($result->num_rows > 0) {
26
    for ($i = 0; $i < $result->num_rows; $i++) {
27
        list ($gnazev, $lcteni, $scteni, $bcislo01) = mysqli_fetch_row($result);
28
        echo("Sign name: &nbsp; $gnazev<BR>");
29
        echo("Logographic values: &nbsp; $lcteni<BR>");
30
        echo("Syllabic values: &nbsp;$scteni<BR><BR>");
31

    
32
        $query2 = "SELECT bcislo, images FROM images WHERE bcislo = $bcislo01";
33
        $result2 = $conn->query($query2);
34

    
35
        if ($result2->num_rows > 0) {
36
            echo("Selected Borger's number: <b>$bcislo01</b>&nbsp; <BR>\n$result2->num_rows variant(s) found.<br>\n");
37
            echo("<BR>\n");
38
            for ($j = 0; $j < $result2->num_rows; $j++) {
39
                list ($bcislo, $images) = mysqli_fetch_row($result2);
40
                echo("<img src=\"png/$images\" WIDTH=40 HEIGHT=40 BORDER=1>");
41
            }
42
        } else {
43
            echo("Borger number not found.");
44
        }
45
        echo("<BR><hr>");
46
    }
47
} else {
48
    echo("Nothing found, try again.");
49
}
50

    
51
mysqli_close($conn);
52
?>
53

    
54
</table>
55
<br>
56
</FONT>
57
</BODY>
58
</HTML>
(86-86/135)