ok so i tried it with this code:
<?php
include("inc/config.php");
$conn = mysql_connect("$db_host","$db_username","$db_password");
if (!$conn) die ("Could not connect MySQL");
mysql_select_db($db,$conn) or die ("Im sorry, there has been an error while connecting to the database, please contact the Administrator");
$result = mysql_query("SELECT * FROM systemconfig") or die(mysql_error());
$results_table = array();
while($row = mysql_fetch_array($result, MYSQL_ASSOC)){
$results_table[$row['id']] = $row;
}
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="'.$row['metadesc'].'">
<meta name="keywords" content="" />
<meta name="author" content="" />
<link rel="stylesheet" type="text/css" href="css.css" media="screen" />
</head>
<body>
<div id="container">
<div id="header">
<div class="headtitle"></div>
</div>';
?>
and it didnt output anything, then i tried it with just this code:
<?php
include("config.php");
$conn = mysql_connect("$db_host","$db_username","$db_password");
if (!$conn) die ("Could not connect MySQL");
mysql_select_db($db,$conn) or die ("Im sorry, there has been an error while connecting to the database, please contact the Administrator");
$result = mysql_query("SELECT * FROM systemconfig") or die(mysql_error());
$results_table = array();
while($row = mysql_fetch_array($result, MYSQL_ASSOC)){
$results_table[$row['id']] = $row;
}
echo '<meta name="description" content="'.$row['metadesc'].'">';
?>
and it still didnt out put anything...