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:

view on browser

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

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -