-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathficha.php
More file actions
49 lines (29 loc) · 1.23 KB
/
ficha.php
File metadata and controls
49 lines (29 loc) · 1.23 KB
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
<?php
$id = $_POST['id'];
// 1. Me conecto a la BD
include("conexion.php");
// 2. Genero la query (SELECT)
$ver = "SELECT * FROM `registro` WHERE id = $id ";
// 3. Ejecutamos la query
$ej = mysqli_query($conexion, $ver);
// 4. Pregunto si NO funcionó
if ($ej === false) {
echo "error, ver SQL";
} else {
?>
<?php while ($reg = mysqli_fetch_array($ej)) {
?>
<tr id="idtb">
<td><strong>Especialidad: </strong><?php echo $reg['especialidad'] ?><br></td>
<td><strong>Nombre: </strong><?php echo $reg['nombre'] ?><br></td>
<td><strong>Apellido</strong>: <?php echo $reg['apellido'] ?><br></td>
<td><strong>Ciudad: </strong><?php echo $reg['ciudad'] ?><br></td>
<td><strong>Latitud: </strong><?php echo $reg['latitude'] ?><br></td>
<td><strong>Longitud: </strong><?php echo $reg['longitude'] ?><br></td>
<td><strong>Telefono: </strong><?php echo $reg['telefono'] ?><br></td>
<td><strong>Mail: </strong><?php echo $reg['mail'] ?></td>
</tr>
<?php
} // Cierra while
} // Cierra else de todo ok
?>