Vladsvn
Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору <?php $address = $_SERVER['REQUEST_URI']; $query = mysqli_query($db, "SELECT * FROM `content` WHERE `address` = '$address'"); $row = mysqli_fetch_assoc($query); $title = $row['title']; $description = $row['description']; $keywords = $row['keywords']; $canonical = $row['canonical']; $css = $row['css']; $text = $row['text']; ?><!DOCTYPE html> <html lang=ru> <head> <title><?php echo $title; ?></title> <meta name="description" content="<?php echo $description; ?>"> <meta name="keywords" content="<?php echo $keywords; ?>"> <meta charset=utf-8> <link rel="canonical" href="<?php echo $canonical; ?>" /> <link rel="stylesheet" href="<?php echo $css; ?>" type="text/css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="shortcut icon" href="/favicon.ico" /> </head> <body> <?php echo $text; ?> </body> </html> |