Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End include keywods description and title for each page different

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #40151
    slayboy
    Member

    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.’

    ‘;
    ?>



Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.