Define in PHP not accept space -
i use define() function make settings page site.
in settings.php
define('description', "admin dashboard template"); define('title', "modern"); define('keywords', "admin,dashboard"); define('author', "minh tan"); in index.php
<?php include('config/settings.php'); ?> <!doctype html> <html> <head> <!-- title --> <title><?php echo title; ?> | login - sign in</title> <meta content="width=device-width, initial-scale=1" name="viewport"/> <meta charset="utf-8"> <meta name="description" content=<?php echo description; ?> /> <meta name="keywords" content=<?php echo keywords; ?> /> <meta name="author" content=<?php echo author; ?> /> but when run on browser. make results:

help me! thanks.
wrap php statements in double quotes.. go missing after charset.
<meta name="description" content="<?php echo description; ?>" /> <meta name="keywords" content="<?php echo keywords; ?>" /> <meta name="author" content="<?php echo author; ?>" />
Comments
Post a Comment