forked from AdelinedeNazare/MaisHistoria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
videos.php
49 lines (48 loc) · 1.41 KB
/
videos.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
48
49
<?php
include_once 'connection.php';
?>
<!DOCTYPE html>
<html lang="pt-br">
<body>
<header>
<?php
include_once 'login.php';
include_once 'menu.php';
?>
</header>
<?php
// $id = $_GET["id"];
$queryVideo = "SELECT * FROM tb_videos ";
$videos = $conn->query($queryVideo);
if ($videos->num_rows) {
$resultado = $videos->fetch_assoc();
$nomevideo=$resultado['nomevideo'];
$urlvideos = $resultado['url'];
$descricaovideo = $resultado['descricao'];
}
else {
header("Location: http://localhost/error.php");
die();
}
?>
<div class="container conteudo">
<?php
include_once 'carrosel.php';
?>
<div class="row destaque">
<h2 style="color:#005858;">Vídeos:</h2>
<hr>
</div>
<h3> <b><?php echo $resultado['nomevideo']; ?></b></h3>
<br />
<br /> <?php echo "<p><iframe src='$urlvideos' frameborder='0' allowfullscreen></iframe></a>" ;?>
<br /> <?php echo $resultado['descricao']; ?>
<br />
<br />
<?php
include_once 'pluggin.php';
include_once 'footer.php';
?>
</div>
</body>
</html>