-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay_user.php
43 lines (40 loc) · 2.15 KB
/
display_user.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
<?php
$q = intval($_GET['q']);
$con = mysqli_connect('localhost','ospcbin','2crn#robin1','ospcbin_KCP');
if (!$con) {
die('Could not connect: ' . mysqli_error($con));
}
mysqli_select_db($con,"ospcbin_KCP");
$sql="SELECT * FROM `site_table` WHERE site_code= '".$q."'";
$result = mysqli_query($con,$sql);
while($row = mysqli_fetch_array($result)) {
?>
<FORM action="graphics_user_1.php" method="post">
<table border="1" bordercolor="#FFFF00" width="250" height="100%">
<tr>
<td>
<font color='#F00'>Graphical Display</font><br/>
<font color='#039'> Channel 1 Code (BOD)
<input type="radio" name='channel' value="<?php echo $row['channel_1'] ?>"
onclick="this.form.submit();">
Channel 2 Code (pH)
<input type='radio' name='channel' value="<?php echo $row['channel_2'] ?>"
onclick="this.form.submit();">
Channel 3 Code (TSS)
<input type='radio' name='channel' value="<?php echo $row['channel_3'] ?>"
onclick="this.form.submit();">
Channel 4 Code (TSS)
<input type='radio' name='channel' value="<?php echo $row['channel_4'] ?>"
onclick="this.form.submit();">
Channel 5 Code (TSS)
<input type='radio' name='channel' value="<?php echo $row['channel_5'] ?>"
onclick="this.form.submit();">
Channel 6 Code (TSS)
<input type='radio' name='channel' value="<?php echo $row['channel_6'] ?>"
onclick="this.form.submit();">
<?php
}
?>
</td>
</tr>
</table><br/>