-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.php
More file actions
37 lines (31 loc) · 891 Bytes
/
home.php
File metadata and controls
37 lines (31 loc) · 891 Bytes
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
<?php
include '..\opencv\include\header.php';
?>
<html>
<BODY bgcolor ="lime">
<form id="form1" name="form1" method="post" action="drd.php">
State List :
<?php
$con=mysqli_connect("localhost","root","","vlpr");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con,"SELECT * FROM states");
echo "<Select name='stateName'>
<option>---Select---</option>";
while($row = mysqli_fetch_array($result))
{
echo "<option value=".$row['Id'].">" . $row['Name'] . "</td>";
}
echo"</Select>";
mysqli_close($con);
?>
<input type="submit" name="Submit" value="Select" />
</form>
</body>
</html>
<?php
include '..\opencv\include\footer.php';
?>