-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclub_details.php
57 lines (35 loc) · 1.57 KB
/
club_details.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
<?php
include("include/adminheader.php");
?>
<h1 style="text-align: center">Club Information</h1>
<?php
$id= $_GET["id"];
$db = oci_connect('system','1234','xe');
$sql= "select * from clubs where club_id={$id}";
$result=oci_parse($db,$sql);
oci_execute($result);
$row=oci_fetch_array($result);
$name = $row[1];
$owner = $row[2];
$sid = $row[3];
echo("<form class=\"custom-form\"action=\"updateclubs.php\" method=\"post\">
Club ID: <input type=\"text\" name=\"nid\" value=\"{$id}\" readonly> </br>
Club Name:<input type=\"text\" name=\"nname\" value=\"{$name}\" required></br>
Club Owner:<input type=\"text\" name=\"nowner\" value=\"{$owner}\" required></br>
Stadium Id: <select name=\"nsid\"> ");
$sql = 'select * from stadiums order by stadium_name';
$result = oci_parse($db, $sql);
oci_execute($result);
while ($row = oci_fetch_array($result))
{
if($row[0]==$sid)echo "<option value= " . $row[0] . " selected >" . $row[1] . "</option> </br>";
else echo "<option value= " . $row[0] . " >" . $row[1] . "</option> </br>";
}
echo("</select> <br> <br>");
echo("<a href=\"viewclubs.php?param=club_id\" class= \"btn btn-inverse\">Back</a> </br></br> ");
echo("<input type=\"submit\" name=\"submit\" value=\"Update\" class= \"btn btn-primary\" onclick=\"return confirm('Are you sure you want to search Google?')\"></br></br> ");
echo("<a href=\"deleteclubs.php?id={$id}\" class= \"btn btn-danger\" onclick=\"return confirm(\'Are you sure you want to search Google?\')\">Delete</a> </form></br></br> ");
?>
<?php
include("include/adminfooter.php");
?>