www.webdeveloper.com
Results 1 to 5 of 5

Thread: Displaying Content on a page from database

  1. #1
    Join Date
    May 2006
    Posts
    412

    Displaying Content on a page from database

    hi i am in the middle of creating a system where all website content is stored in a database the thing i want to do is depending on wat the user has click how can i make it come up the page without having to create more pages on the website like i have say over 500 pages stored in a database how can this be done? can anyone give me a hand please

    also i have created a dymanic menu on the top of my script and what i can is when i click the links they show the content below can this be done if so how can i go about doing this?

  2. #2
    Join Date
    Jan 2005
    Location
    Alicante (Spain)
    Posts
    7,742
    You don't store pages in a database; you store content. Make a template and load the content from the database into the template. The content will also need a method entry and exit points where PHP code can be run inside it.

  3. #3
    Join Date
    May 2006
    Posts
    412
    Sorry,I had the words mixxed up but yes i store content in the database how can i go about this?

  4. #4
    Join Date
    Jan 2005
    Location
    Alicante (Spain)
    Posts
    7,742
    Well that really depends on how the content is being created in the first place.

  5. #5
    Join Date
    May 2006
    Posts
    412
    all the stuff in the table is stored in field for page Name is stored in Pname and The Title Stored in PTITLE and the keywords are stored in PKeys and The Page Description is stored in PDesc and The Content on the Page is stored in Pcontent and i have also have a field that has the status of the path so if its Publish or unpublish it wud show up in the unpubhlish field if its unpubhlished and if it was publsh it will show up in the publish field in the admin control panel so how can i solve this?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles