so I've saved an article slug to my database and usually I would filter my pages with the art_id
like so,
$sql_articles = "SELECT * FROM app_articles WHERE art_id=".$_GET['art_id'];
$result_articles = query($sql_articles);
and I pass would pass the art_id
through the url with a link like so
<a href="index.php?art_id=<?php echo $article['art_id']; ?>">
And I'm wondering how I can pass the art_slug
instead of the art_id
so my URL would be like www.site.com/index.php/lorem-ipsum-slug
and it would display the article thanks in advance for any help