<?php

include __DIR__.'/config/db_connect.php';

$slug = $_GET['slug'];

$sql = "select * from tbl_post where slug = '{$slug}'";

$result_Set = mysqli_query($con,$sql);

$count = mysqli_num_rows($result_Set);

$row=mysqli_fetch_assoc($result_Set);

$title = $row['title'];

$name = $row['name'];

$category = $row['category'];

$content = $row['content'];

?>