my question now is everything is working like my template and the content all i want is to include keywods description and title for each page different it is giving me headache i have a database name pages it has 6 columns id,name,title,description,keywords ,status. All my pages are working that are from the database what i want now is my pages changes with the name i from the database that is pages changing with the page thanks
// Set document:
include (‘config/setup.php’);
if(!isset($_GET)) {
$pg= ‘page’;
}else{
$pg= $_GET;
}
?>
this is my php code
help
$q=”SELECT*FROM pages WHERE name=’$pg’ “;
$r=mysqli_query($dbc,$q);
$page= mysqli_fetch_assoc($r);
echo ‘
‘.$page.’
‘;
?>