-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfetch_data.php
More file actions
43 lines (33 loc) · 1.28 KB
/
fetch_data.php
File metadata and controls
43 lines (33 loc) · 1.28 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
<div class="control-group">
<label class="control-label" for="focusedInput">Nama Makmal:</label>
<div class="controls">
<select class="input-xlarge focused" name="nama_makmal" id="focusedInput" type="text" placeholder="">
<option value="">----Pilih-----</option>
<?php
require_once('functions/function.php');
get_conn();
if(isset($_POST['get_option']))
{
$usertype = $_POST['get_option'];
$find=mysql_query("SELECT * from makmal WHERE usertype='3'");
while($row=mysql_fetch_array($find))
{
echo "<option>".$row['nama_makmal']."</option>";
}
exit;
}
?>
<!-- <?php
/*
get_conn();
$sql="SELECT * FROM makmal
WHERE Not exists
(SELECT nama_makmal FROM users WHERE makmal.nama_makmal=users.nama_makmal)";
$query= mysql_query($sql);
while($rows=mysql_fetch_array($query)){
?>
<option value="<?php echo $rows['nama_makmal'] ?>" ><?php echo $rows['nama_makmal'] ?></option>
<?php } */?>-->
</select>
</div>
</div>