Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
index.php
1<head>
2<link rel="stylesheet" type="text/css" href="search_template.css">
3</head>
4<body style="margin: 0; padding: 0">
5 <table align="center">
6 <tr>
7 <td><img src="logo_search.gif" alt="Search" height="92" width="420">
8 <form method="get" action="index.php">
9Search by tags:
10<?php
11if (isset($_GET['tags'])) {
12 echo "<input type=\"text\" name=\"tags\" value=\"" . $_GET['tags'] . "\">";
13} else {
14 echo "<input type=\"text\" name=\"tags\">";
15}
16include ('functions.php');
17?>
18
19<input type="submit" value="Search">
20 </form>
21
22<?php
23$db = new SQLite3('database.sqlite');
24// $stmt = getQuery();
25$result = getQuery($db);
26
27// $db->query($stmt);
28if (isset($_GET['tags'])) {
29 if ($_GET['tags'] != "" && count($result) < 21) {
30 showGoogle($result);
31 } else {
32 showTable($result);
33 }
34} else {
35 showTable($result);
36}
37$db->Close();
38?>