This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.php
102 lines (78 loc) · 2.85 KB
/
post.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="es-MX">
<head>
<?php include "fx-includes/metas/metas.php"; ?>
<title>
<?php
require "facilito_db/conexion.php";
$id =$_GET["Titulo"];
$miconsulta = "SELECT * FROM blog WHERE Titulo='$id' ";
if($resultado=mysqli_query($miconexion,$miconsulta)){
while($registro = mysqli_fetch_array($resultado)){
echo $registro["Titulo"];
}
}
?>
</title>
<meta name="description" content="'<?php
if($resultado=mysqli_query($miconexion,$miconsulta)){
while($registro = mysqli_fetch_array($resultado)){
echo $registro["Seo_d"];
}
}
?>'"/>
</head>
<body>
<?php
include "fx-includes/cabecera/cabecera.php";
?>
<div class="contenedor">
<div class="grid-cuerpo">
<section class="contenido">
<?php
$id =$_GET["Titulo"];
$miconsulta = "SELECT * FROM blog WHERE Titulo='$id' ";
if($resultado=mysqli_query($miconexion,$miconsulta)){
while($registro = mysqli_fetch_array($resultado)){
echo "<h1 class= 'titulos'>" . $registro["Titulo"] . "</h1>";
if($registro['Imagen']!=""){
echo "<div class='img-active'><center>";
echo "<img alt='".$registro['Titulo'] ."' src='fx-contenido/img/blog/". $registro['Imagen'] ."' ></a>";
echo "</center></div>";
}
echo "<p class='content3-post'>" . $registro["Descripcion"] . "</p>";
}
}
?>
<center>
<?php include "fx-includes/regresar-btn1.php"; ?>
</center>
</section>
<aside class="relacion">
<h1 class="titulos">Noticia nuevas</h1>
<?php include "fx-includes/contenido/nuevos-en-noticias.php"; ?>
<h1 class="titulos">Nuevo en blog</h1>
<?php include "fx-includes/contenido/nuevos-en-blog.php"; mysqli_close($miconexion); ?>
</aside>
<div class="semi-cierre">
<div class="contenido-semi">
<div class="parte1-semi">
<h2 class="subtitulos">Gracias por su visita</h2>
Este sitio web fue creado con la tecnología de:
</div>
<div class="parte2-semi">
<br>
<div class="logos-corp">
<img src="fx-contenido/img/logos-corp/facilito.webp" alt="">
<img src="fx-contenido/img/logos-corp/builder.webp" alt="">
<img src="fx-contenido/img/JOSPROX.webp" alt="">
</div>
<br>
</div>
</div>
</div>
</div>
</div>
<?php include "fx-includes/footer/footer.php"; include "fx-includes/script/script.php"; ?>
</body>
</html>