forked from Anupama-Github/rasi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwords.php
executable file
·96 lines (73 loc) · 1.92 KB
/
words.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
session_start();
// dBase file
include "dbConfig.php";
$DB = new DBConfig();
$DB -> config();
$dbhandle =$DB -> conn();
if(isset($_GET["arg1"]))
{
if($_GET["arg1"] !="")
$q = "SELECT * FROM `words` WHERE `word` LIKE '".chr($_GET["arg1"])."%'";
}
else
$q = "SELECT * FROM `words` ";
//execute the SQL query and return records
$result = mysql_query($q);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
Name : Modelling
Description: A two-column, fixed-width design with dark color scheme.
Version : 1.0
Released : 20120617
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>rasi</title>
<link href="http://fonts.googleapis.com/css?family=Abel" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<div id="wrapper2">
<div id="wordlist">
<ul>
<li>
<h2>Words</h2>
<ul>
<?php while ($row = mysql_fetch_array($result, MYSQL_ASSOC)){
echo "<li><a href=temp_meanings.php?wordid=".$row['id']."&word=".$row['word'].">". $row['word']."</a>";
}
?>
</ul>
</li>
</ul>
</div>
<div style="clear: both;"> </div>
</div>
<div id="alphabets">
<ul>
<?php
for ($i=65; $i<=90; $i++) {
echo "<li><a href=words.php?arg1=".$i.">".chr($i)."</a></li>";
}
//echo "സൗജന്യം ";
//echo "\xe5\x86\x85";
?>
</ul>
</div>
</div>
</div>
<!-- end #footer -->
</body>
</html>
<?php
mysql_free_result($result);
?>