-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaddclubs.php
49 lines (34 loc) · 1.61 KB
/
addclubs.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
<?php
include("include/adminheader.php");
?>
<h1 style="text-align: center">Clubs</h1> </br> </br>
<form action="club_info.php" method="post" name="myForm" onsubmit="return validateForm()">
<div class="custom-div" style="height: 200px;">
<div class= "custom-form2" style="float: left">
Club Name:
<input type="text" id="clubname" name="cname" placeholder="Club Name" required>
Club Owner:
<input type="text" id="clubowner" name="cowner" placeholder="Club Owner" required>
<a href="viewclubs.php?param=club_id" class="btn btn-inverse">Back</a>
</div>
<div class= "custom-form2" style="float: right">
Stadium Name:
<select name="sid">
<?php
$conn = oci_connect("system", "1234", "xe");
$sql = 'select * from stadiums order by stadium_name';
$result = oci_parse($conn, $sql);
oci_execute($result);
while ($row = oci_fetch_array($result))
{ echo "<option value= " . $row[0] . " >" . $row[1] . "</option> </br>";
}
?>
</select><br>
<a href="addstadiums.php" style="color: white">Not Available?</a> </br> </br>
<input type="submit" name="submit" class="btn btn-primary"> </br> </br>
</div>
</div>
</form>
<?php
include("include/adminfooter.php");
?>