-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
54 lines (53 loc) · 1.92 KB
/
index.php
File metadata and controls
54 lines (53 loc) · 1.92 KB
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
<?php include("./inc/header.inc"); ?>
<form method="get" action="./query.php">
<p class="first">Search:
<input type="text" name="query" size="40" />
<input type="submit" value="Search" />
<a href="./advance.php">Advance Search</a>
</p>
</form>
<hr />
<p>Release: <br />
<?php
include('./inc/connect.inc');
$result = mysqli_query($connect,"SELECT * FROM Releases ORDER BY Releases.Set");
while($row = mysqli_fetch_array($result))
{
echo('<a href="./query.php?release=' . $row['Release'] .
'">' . $row['Release'] . '</a> ');
}
?>
</p>
<p>Faction:
<?php
$result = mysqli_query($connect,"SELECT DISTINCT Alliance FROM Factions");
while($row = mysqli_fetch_array($result))
{
echo('<a href="./query.php?alliance=' . $row['Alliance'] .
'">' . $row['Alliance'] . '</a> ');
}
?>
</p>
<p>Nation:<br />
<?php
$result = mysqli_query($connect,"SELECT * FROM Factions");
while($row = mysqli_fetch_array($result))
{
echo('<a href="./query.php?faction=' . $row['Faction'] .
'"><img src="./images/faction/' . $row['Faction'] .
'-lg.png" alt="' . $row['Faction'] . '" /></a> ');
}
?>
</p>
<hr />
<p>Please <a href="./contact.php">contact me</a> with any errors,
or feedback.</p>
<p>Also, if you're feeling generous, you can make a donation via PayPal. Any amount would be appreciated:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="text-align:center">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="3902227">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</p>
<?php include("./inc/footer.inc"); ?>