When creating an article in a separate field in the database, the title of the article fits into my transliteration. But how to make the article open not at http://site.ru/articles.php?id=ID, but at http://site.ru/nazvanie.html ? The article is displayed as
if($id) { $counts = @ mysql_result(mysql_query('SELECT COUNT(*) FROM `articles` WHERE `id`='.$id.' AND `moderation`="1";'), 0); if($counts==0) { echo '<div class="alert alert-error">Статьи не существует!</div>'; echo '</article>'; require 'system/foot.php'; exit; } $row = mysql_fetch_assoc(mysql_query("SELECT * FROM `articles` WHERE `id`='".$id."' AND `moderation`='1'"));