Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2011
    Location
    Saginaw MI
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question CanI Display, Title, Meta and Page ID's Using Database?

    I want to thank you advance....

    I was wondering how people use a Database to Give a Page of a Website it's Title, Meta and Id's?

    Can someone please explain if that is possible....

    Here is the issue, I am learning how to use Includes.... But the problem I am having is, if only the main content changes dynamically, but the header does not, then how does all the Title and Meta change?

    Thank you.....

  • #2
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    You query the database and pass the values to the variables in the header file.


    PHP Code:
    <title><?php echo $pageTitle?></title>
    Leonard Whistler


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •