<?php
require "includes/config.php";
require "includes/header.php";
$query = mysqli_query($conn, "SELECT * FROM post ORDER BY id DESC");
?>
This Is The top of index.php
.
.
.
.
include "includes/header.php";
include "includes/config.php";
$detail_id = $_GET["id"];
$query = mysqli_query($conn, "SELECT * FROM post WHERE post.id = '$detail_id'");
$row_detail = mysqli_fetch_array($query)
?>
This is the top of detail.php
.
.
.
.
<a href="index.php?detail=<?php echo $row["id"]; ?>">
Link to go to detail.php
.
.
.
.
The problem is when I click on the link, I'm redirected to index (no change), not to detail.php. Can you solve this problem? Thank you.