1
|
<html>
|
2
|
<head>
|
3
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
4
|
<LINK REL=StyleSheet HREF="/utf/obtc1.css" TYPE="text/css" MEDIA="screen, print">
|
5
|
<title>Selected items from used texts in the Old Babylonian Graphemic Analyses</title>
|
6
|
</head>
|
7
|
<body>
|
8
|
<FORM ACTION="hledej2.php" METHOD="post">
|
9
|
<FONT FACE='Verdana' Color="#9bbad6">
|
10
|
<h2>
|
11
|
<center>Selected text group in the Old Babylonian Graphemic Analyses</center>
|
12
|
</FONT></h2>
|
13
|
<h3><FONT color=#8080ff face=Verdana size=4>List of items according to previous selection</FONT></h3>
|
14
|
<?php
|
15
|
require_once('dbconfig.php');
|
16
|
|
17
|
$conn = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
|
18
|
$conn->set_charset("utf8");
|
19
|
|
20
|
if ($conn->connect_error) {
|
21
|
die("Connection failed: " . $conn->connect_error);
|
22
|
}
|
23
|
echo "<FONT FACE='Arial Unicode MS' SIZE=3><BR>";
|
24
|
|
25
|
$type2 = $_POST["type2"];
|
26
|
$type = $_POST["type"];
|
27
|
|
28
|
$query = "SELECT * FROM graf02 WHERE documenttype='$type' OR ancientplace='$type2'";
|
29
|
$result = $conn->query($query);
|
30
|
|
31
|
if ($result->num_rows > 0) {
|
32
|
echo "<FONT FACE='Arial Unicode MS' SIZE=3>$pocethesel item(s) found.\n<BR>";
|
33
|
echo "<table border=0 bgcolor=\"#ecece6\" cellspacing=0 cellpadding=3>";
|
34
|
echo "<tr><td class=td1>edition abbrv.</td><td class=td1>edition number</td><td class=td1>edition number</td><td class=td1>year</td><td class=td1>month</td><td class=td1>day</td><td class=td1>ancient place</td><td class=td1>document type</td><td class=td1>transliteration</td><td class=td1>ancient ruler</td><td class=td1>ancient year</td></tr>";
|
35
|
|
36
|
for ($i = 0; $i < $result->num_rows; $i++) {
|
37
|
List ($editionabbreviation, $editionnumber1, $editionnumber2, $dateyear, $datemonth, $dateday, $ancientplace, $documenttype, $transliteration, $ancientruler, $ancientyear) = mysqli_fetch_row($result);
|
38
|
echo "<tr><td class=td2>$editionabbreviation</td><td class=td2>$editionnumber1</td><td class=td2>$editionnumber2</td><td class=td2>$dateyear</td><td class=td2>$datemonth</td><td class=td2>$dateday</td><td class=td2>$ancientplace</td><td class=td2>$documenttype</td><td class=td2>$transliteration</td><td class=td2>$ancientruler</td><td class=td2>$ancientyear</td></tr>";
|
39
|
//echo "<tr><td>$editionabbreviation</td></tr>";
|
40
|
}
|
41
|
echo "</table>";
|
42
|
} else {
|
43
|
echo("Nothing found, try again.");
|
44
|
}
|
45
|
|
46
|
mysqli_close($conn);
|
47
|
?>
|
48
|
<BR>
|
49
|
</FONT>
|
50
|
</FORM>
|
51
|
</body>
|
52
|
</html>
|