-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactualizar.php
43 lines (32 loc) · 1.85 KB
/
actualizar.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
<?php
//OK MODIFICA OK
include("Conexion.php");
$conexion=conectar();
$id=$_GET['id'];
$sql="SELECT * FROM menu WHERE id='$id'";
$query=mysqli_query($conexion,$sql);
$row=mysqli_fetch_array($query, MYSQLI_ASSOC);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/style.css" rel="stylesheet">
<title>Actualizar</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
</head>
<body style="background-image: url('restaurant.jpg'); background-repeat: no-repeat;">
<div class="container mt-5">
<h1 style="color:blue;">Formulario de modificación</h1>
<form action="update.php" method="POST">
<input type="hidden" name="id" value="<?php echo $row['id'] ?>">
<input type="text" class="form-control mb-3" name="nombre" placeholder="nombre" value="<?php echo $row['nombre'] ?>">
<input type="text" class="form-control mb-3" name="opcion" placeholder="opcion" value="<?php echo $row['opcion'] ?>">
<input type="text" class="form-control mb-3" name="precio" placeholder="precio" value="<?php echo $row['precio'] ?>">
<input type="submit" class="btn btn-primary btn-block" value="Actualizar">
</form>
</div>
</body>
</html>