/    Sign up×
Community /Pin to ProfileBookmark

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?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@bokehJun 28.2006 — 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.
Copy linkTweet thisAlerts:
@william232authorJun 28.2006 — Sorry,I had the words mixxed up but yes i store content in the database how can i go about this?
Copy linkTweet thisAlerts:
@bokehJun 28.2006 — Well that really depends on how the content is being created in the first place.
Copy linkTweet thisAlerts:
@william232authorJun 28.2006 — 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?
×

Success!

Help @william232 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...