initial commit
This commit is contained in:
36
rels/rel_prestador.php
Normal file
36
rels/rel_prestador.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
if (session_status() !== PHP_SESSION_ACTIVE){
|
||||
session_start();
|
||||
}
|
||||
include("../conexao.php");
|
||||
include('../menu.php');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Relatório prestador</title>
|
||||
<link rel="stylesheet" href="../css/menu.css">
|
||||
<link rel="stylesheet" href="../css/article.css">
|
||||
<link rel="stylesheet" href="../css/input.css">
|
||||
</head>
|
||||
<body>
|
||||
<?php echo $nav; ?>
|
||||
<article>
|
||||
<section class='center'>
|
||||
<h1>Prestadores</h1>
|
||||
<?php
|
||||
$sql= "SELECT * FROM consulta_prestador_servico";
|
||||
$resultado = mysqli_query($con,$sql) or die("Erro ao retornar dados");
|
||||
|
||||
while ($registro = mysqli_fetch_array($resultado)){
|
||||
echo "<h2>Prestador: ".$registro['prestador']."<br></h2>";
|
||||
echo "ID do prestador: ".$registro['id_prestador']."<br><hr>";
|
||||
}
|
||||
mysqli_close($con);
|
||||
?>
|
||||
</section>
|
||||
</article>
|
||||
<?php echo $footer; ?>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user