This is a discussion on "Adding a new page" within the PHP Forum section. This forum, and the thread "Adding a new page are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Adding a new page
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|
|
|||
|
Re: Adding a new page
1. Make a database tabe for "Pages".
2. Create fields such a Title, body, by, time, etc. 3. When you want to add a new page, just run a INSERT query!
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
|
|
||||
|
Re: Adding a new page
Hi
Thanks for the quick reply. What are the exact fields in my database then? or does all this depend on what you are doing with the website? What are the properties I need for each fields, such as varchar? etc! Any help would be greatly received Thanks Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
|
|
|||
|
Re: Adding a new page
What field of what type is your choice. But remember the auto-incrementing field should be INT(integer) type, else it returns an error!
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
|
|
||||
|
Re: Adding a new page
Sorry for not understanding!
But could you please rephrase, because I don't understand! Sorry!
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
|
|
|||
|
Re: Adding a new page
In general, you would need following fields:
1. id - integer 2. title- varchar 3. date and time- varchar 4. by -varchar 5-body- text and so on!
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
|
|
||||
|
Re: Adding a new page
Okay this should help, run this SQL query to create a table.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: Adding a new page
Of course.. you can do this without using a database as well... Personally I steer clear of databases as much as possible because I'd rather it be there permanently.
You can do this by using PHP's file system. HERE is some good stuff on it.
Last Blog Entry: Happy Holidays - A Non Offensive way to say Merry Christmas? WRONG! (Dec 11th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding More Images | crackafaza | PHP Forum | 0 | Jan 3rd, 2008 13:18 |
| Adding a new page...quick way to add to navigation bar? | jotto | Starting Out | 11 | Sep 23rd, 2007 17:05 |
| Adding a calendar? | Stefan83 | Website Planning | 1 | May 8th, 2007 19:18 |
| Adding music to a Web Page | Towbar | Introduce Yourself | 4 | Mar 12th, 2006 17:38 |