-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselecionar_form_resp.php
45 lines (45 loc) · 2.19 KB
/
selecionar_form_resp.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
<?php include('header.php')?>
<body>
<div class="container-fluid pt-3">
<div class="row">
<div class="col">
<div class="card">
<div class="card-body">
<h3 class="card-title">SELECIONE O FORMULÁRIO PARA VER AS RESPOSTAS</h3>
<div class="container-fluid">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<form method="post" id="select_form" action="selecionar_respostas.php">
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Nome do Formulário</th>
<th scope="col">Nome do criador</th>
<th scope="col">Selecionar</th>
</tr>
</thead>
<tbody>
<?php $sqlSelect = "SELECT * from nome_formulario";
$resultados = mysqli_query($db, $sqlSelect);
foreach ($resultados as $linha) { ?>
<tr>
<th scope="row"><?php print_r($linha['id']); ?></th>
<td><?php print_r($linha['nome_formulario']); ?></td>
<td><?php print_r($linha['nome_criador']); ?></td>
<td><button type="submit" name="idlinha" class="btn btn-primary" value="<?php print_r($linha['id']); ?>">Selecionar</td>
</tr>
<?php }?>
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include('footer.php')?>
</body>