View Single Post
Old 09-06-2021, 08:12 AM  
zijlstravideo
Confirmed User
 
zijlstravideo's Avatar
 
Industry Role:
Join Date: Sep 2013
Location: The Netherlands
Posts: 805
Quote:
Originally Posted by Publisher Bucks View Post
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>
__________________
Contact: email
zijlstravideo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote