initial commit
This commit is contained in:
38
rels/rel_prestador_servico.php
Normal file
38
rels/rel_prestador_servico.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?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>Serviço: ".$registro['servico']."</h2>";
|
||||
echo "<h1>ID do serviço: ".$registro['id_servico']."</h1>";
|
||||
echo "Prestador: ".$registro['prestador']."<br>";
|
||||
echo "Categoria: ".$registro['categoria']."<br><hr>";
|
||||
}
|
||||
mysqli_close($con);
|
||||
?>
|
||||
</section>
|
||||
</article>
|
||||
<?php echo $footer; ?>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user