-2
i’m blogging using html,css and php but I don’t know how to do it for when I click on the title of the report be directed to a page with full text, same as the news portals. that when you click on the title of the report you go to a page with a different link and the full text. any doubt to answer the question and only ask.
<section class="postagens">
<?php
/*sistema de pesquisa no blog*/
if(isset($_POST['procurar'])){
$pesquisa = $_POST['titulos'];
$sql = $pdo->prepare("SELECT * FROM posts WHERE titulo LIKE '%$pesquisa%'");
$sql->execute(array($pesquisa));
$info = $sql->fetchAll();
}
?>
<div class="container">
<?php
/*pega todos as postagens no banco de dado*/
foreach ($info as $key => $value) {
$titulos = $value['titulo'];
$resumo = $value['resumo'];
$imagem = $value['imagem'];
?>
<div id="box">
<?php echo '<p> <img src=" ' .$imagem. ' "></p> ' ?>
<?php echo "<h3>".$titulos."</h3>"?>
<?php echo '<p class="resumos">'.$resumo.'</p>' ?>
</div>
<?php
}
?>
<div class="clear"></div>
</div>
</section>
then, you select the report, then add the information on the page.
– Marginal_BR