-
Notifications
You must be signed in to change notification settings - Fork 0
/
eliminarPregunta.php
47 lines (32 loc) · 1.3 KB
/
eliminarPregunta.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
<html>
<?php $title = 'Eliminar Usuarios'; ?>
<?php $currentPage = 'eliminarUsuarios'; ?>
<?php include('head.php'); ?>
<?php include('nav-bar.php'); ?>
<?php include('conexion.php'); ?>
<?php
error_reporting(E_ALL ^ E_NOTICE);
/*
$sql = "DELETE FROM usertable WHERE id = 4";*/
?>
<form action="eliminar.php" method="post">
<td>Pregunta:</td>
<select name="idpregunta" class="form-select form-select-lg mb-1" id="SelectPregunta" required>
<option selected hidden value="" required>---- Pregunta ----</option>
<?php
$result = $con->query("select * FROM preguntas_predeterminadas");
while ($row = $result->fetch_assoc())
{
echo "<option required value='".$row['id_preguntas']."'>".$row['nombre_pregunta']." </option>";
}
?>
</select>
<input type="submit" value="Eliminar">
</form>
<body>
<div class="container-md d-flex justify-content-center" style="background-color:white" text-center py-5>
<button onclick="history.go(-1);" id="Enviar" style="font-size: 25px">Volver </button>
</div>
<div class="main-wrapper">
<br>
</body>