-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuscar_Inv.php
More file actions
36 lines (27 loc) · 1.49 KB
/
buscar_Inv.php
File metadata and controls
36 lines (27 loc) · 1.49 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
<?php
require('connection.php');
$queryB = "SELECT nombre,apellidos FROM usuarios WHERE nombre LIKE LOWER('%".$_POST["buscarInvitado"]."%') OR nombre LIKE UPPER( '%".$_POST['buscarInvitado']."%') OR apellidos LIKE LOWER('%".$_POST["buscarInvitado"]."%') OR apellidos LIKE UPPER( '%".$_POST['buscarInvitado']."%')";
$conexion = connect();
$consulta = $conexion->query($queryB);
$idEvento = $_POST["idEvento"];
?>
<?php while($resultado = $consulta->fetch_assoc()) { ?>
<div class="table-responsive container">
<form id="myFormInv" method="POST" action="invitar.php">
<table class="table table-responsive table-striped p-3">
<tr>
<td style="color:#082152;"><?php echo $resultado["nombre"]." ".$resultado["apellidos"] ?></td>
<td>
<input class="form-control" type="hidden" id="nombreInvitado" name="nombreInvitado" value='<?php echo $resultado["nombre"]." ".$resultado["apellidos"] ?>'>
<input type="hidden" name="idEvento" value="<?php echo $idEvento ?>">
</td>
</tr>
<tr>
<td style="color:#082152">Numero de invitaciones</td>
<td><input class="form-control" type="number" id="numInvitacion" value='1' name="numInvitacion"></td>
</tr>
</table>
<button class="btn btn-primary" type="submit" id="btnSubmit" name="btnSubmit">Invitar</button>
</form><br>
</div>
<?php } ?>