-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearch.php
More file actions
66 lines (61 loc) · 1.49 KB
/
search.php
File metadata and controls
66 lines (61 loc) · 1.49 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
55
56
57
58
59
60
61
62
63
64
65
66
<?php include("header.php"); ?>
<div class="container">
<h1>Search view</h1>
<p>You do not need to fill out all blanks.</p>
<form action="search_sql.php" method="post">
<table>
<tbody>
<tr>
<td>Course Name:</td>
<td>
<input type="text" name="cname"></td>
</tr>
<tr>
<td>Course Number:</td>
<td>
<input type="number" name="cnumb"></td>
</tr>
<tr>
<td>Course Department:</td>
<td>
<input type="text" name="cdept"></td>
</tr>
<tr>
<td>Institution:</td>
<td>
<input type="text" name="cinst"></td>
</tr>
<tr>
<td>Term:</td>
<td>
<input type="text" name="cterm"></td>
</tr>
<tr>
<td>Year:</td>
<td>
<input type="number" name="cyear"></td>
</tr>
<tr>
<td>
<input name="csearchsubmit" type="submit" value="Search" /></td>
</tbody>
</table>
</form>
<?php
if (isset($_SESSION['insert_course_err'])) {
echo $_SESSION['insert_course_err'];
unset($_SESSION['insert_course_err'] );
}
?>
<h2>Find Users who have commented in all Documents</h2>
<p>A division query.</p>
<form action="search_division.php" method="post">
<input name="divsearchsubmit" type="submit" value="Search" />
</form>
<h2>Find duplicate usernames</h2>
<p>A nested-aggregate query.</p>
<form action="search_duplicate.php" method="post">
<input name="dupsearchsubmit" type="submit" value="Search" />
</form>
</div> <!-- /container -->
<?php include("footer.php"); ?>