-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.php
87 lines (58 loc) · 1.79 KB
/
update.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="es">
<?php include("./config.php"); ?>
<head>
<?php include("./head.php"); ?>
</head>
<body>
<!-- Sidebar/menu -->
<?php include("./navi.php"); ?>
<!-- !PAGE CONTENT! -->
<div class="w3-main" style="margin-left:340px;margin-right:40px" id="wcont">
<!-- Header -->
<?php include("./header.php"); ?>
<!-- Body content -->
<?php
$conn;
$query = "SELECT id_massa, ciudad
FROM t_massas
ORDER BY ciudad ASC";
$result = mysqli_query($conn, $query);
echo "Seleccionar ciudad de la masa:
<br>
<form action='/update_page.php' method='post' name='upciumasa' class='position-static'>
<select id='id_massa' name='idciudad' style='margin-bottom: 10px;
font: revert;
outline: 0;
background: teal;
color: black;
border: 1px solid #9E9E9E;
padding: 4px;
border-radius: 10px;
box-sizing: content-box;
overflow: auto;'>";
while ($cat = mysqli_fetch_array($result)) {
//echo $cat;
?>
<option value="<?php echo $cat['id_massa']?>"><?php echo $cat['ciudad'] ?></option>
<?php
}
echo "</select>
<br>
<input type='submit'>
</form>";
mysqli_free_result($result);
/* close connection */
mysqli_close($conn);
?>
<br><br>
<div class="w3-bar">
<a href="http://bt.free.nf/estad.php"><button class="w3-bar-item w3-button w3-border w3-black w3-hover-teal w3-round-large" style="width:33.3%">Estad.</button></a>
<a href="http://bt.free.nf/update.php"><button class="w3-bar-item w3-button w3-border w3-black w3-hover-teal w3-round-large" style="width:33.3%">Update</button></a>
<a href="http://bt.free.nf/kins.php"><button class="w3-bar-item w3-button w3-border w3-black w3-hover-teal w3-round-large" style="width:33.3%">Insert</button></a>
</div>
<!-- End page content -->
</div>
<?php include("./footer.php"); ?>
</body>
</html>