Quote:
Originally Posted by Publisher Bucks
Sorry, forgot to post the code im using to attach the data from the database..
PHP Code:
<?php
session_start();
("mysql:host=localhost;dbname=database", "user","password");
$table = "Recipes";
$metasettings = @mysql_fetch_assoc(@mysql_query("SELECT * FROM RecipeName, RecipeDescription, Author"));
$title = $metasettings['RecipeName'];
$description = $metasettings['RecipeDescription'];
$random_tags = $metasettings['Author'];
?>
Then im using this in place on each of the metas..
PHP Code:
<?=$title?>
<?=$description?>
<?=$random_tags?>
Hope that makes sense 
|
You want to print it in your head, right?
<head>
<base href="https://gfy.com/" /><!--[if IE]></base><![endif]-->
<meta name="description" content="<?php echo $description; ?>">
</head>