Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create new page for a new record

Status
Not open for further replies.

benclinch

Programmer
Aug 13, 2006
8
GB
Hi,
I am a relative newbie to MySQL and PHP etc..
What I would really like to know is how, when I add a new record to a table, this can automatically create a new page on my website.
The database is called articles, table is Called CSS, with two fields, title and content.

Thanks,
Ben
 
No, that can't be done. However, the routine which adds the record may also be able to create a new web-page.
 
What I want to do is be able to put the title and content into some text boxes, click submit, and then what i have submitted will have its own page?!?
 
Please don't cross post! Read faq222-2244 (especially paras 3 and 5) to find how to get the best from these forums. As Tony says, it's not a MySQL question so you will get a better response in the PHP forum, where your other post is already.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
I have a similar setup on a news site where the table is read and the contents of 'headline' fields are displayed within a section of the page. These headlines link to the relevant record in the table and selecting a headline, displays the news item within a new screen.
The table is used to store the information, a script does all the processing and HTML creation. My version is written in PERL but any server side language would be able to perform the same function.



Keith
 
The question I would ask is is it worth creating a new page for every article or better to use a single page and call the content using an id instead.

Afterall, its really easy to add id to a mysql table, and then see the php manual for $_[GET] - the way you would have a url like

Easier I guess :)


______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top