-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
67 lines (41 loc) · 957 Bytes
/
index.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
<?php
include "class-database.php";
//include "koneksi.php";
$db = new database();
//koneksi mysql via method
$db->koneksi();
?>
<html>
<head>
<script src="json/js/jquery-1.9.1.js"></script>
<script src="json/js/jquery-ui-1.10.3.js"></script>
<link type="text/css" href="json/css/jquery-ui.css" rel="stylesheet" />
<script>
$(function()
{
$( "#tags" ).autocomplete({
source: 'source.php'
});
});
</script>
</head>
<body>
<?php
if(isset($_POST['CARI']))
{
$kunci = $_POST['KUNCI'];
$db2= new searching();
$db2->cari($kunci);
}
?>
<form method="post" action="index.php">
<div class="ui-widget">
<input type ='text' name = 'KUNCI' placeholder="Inputkan Nama Disini" id="tags">
</div><!--end of ui widget-->
<input type ='submit' name = 'CARI' value='CARI'>
</form>
</body>
</html>
<?php
$db->tampilBuku();
?>