mirror of
https://github.com/FranP-code/Allnews.com.git
synced 2025-10-13 00:32:45 +00:00
Hecha la logica para mostrar las noticias completas. Junto con el front-end de la misma. Ademas, modificados los id de la base de datos
This commit is contained in:
47
news.php
Executable file
47
news.php
Executable file
@@ -0,0 +1,47 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="news.css">
|
||||
<title>
|
||||
<?php
|
||||
require 'news_logic.php';
|
||||
|
||||
$requestFromDB = bring_the_choosen_one($_GET['id'])[0];
|
||||
|
||||
$title = $requestFromDB['title'];
|
||||
$content = $requestFromDB['content'];
|
||||
$author = $requestFromDB['author'];
|
||||
$page_source = $requestFromDB['page_source'];
|
||||
$icon_route = $requestFromDB['icon_route'];
|
||||
|
||||
echo $title;
|
||||
?>
|
||||
|
||||
</title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<a href="index.php" class="name">
|
||||
<img class="logo" src="./img/logo.svg">
|
||||
<h1>AllNews.com</h1>
|
||||
</a>
|
||||
</header>
|
||||
|
||||
<div class="all">
|
||||
<h1><?php echo $title;?></h1>
|
||||
|
||||
<article>
|
||||
<img src=<?php echo $icon_route?>>
|
||||
<?php echo $content;?>
|
||||
</article>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="source">
|
||||
Autor: <b><?php echo $author;?></b> | Pagina fuente: <b><?php echo $page_source;?></b>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user