<?php
$veri = mysqli_query($db, "SELECT * FROM posts order by post_id desc");
while($content = $veri->fetch_array())
{
?>
<li class="list-group-item d-flex justify-content-between align-items-center">
<?php echo substr($content["post_title"],0,50),"..."; ?>
<span class="badge-primary badge-pill">
<a href="?silid=<?php echo $content["post_id"]; ?>">Sil</a>
<a href="duzenle.php?duzid=<?php echo $content["post_id"]; ?>">Düzenle</a>
</span>
</li>
<?php } ?>