Jump to content

Creating New Pages on the fly


dmschenk

Recommended Posts

This is a newbie question so any help will be appreciated.

I would like to learn to how create new webpages on the fly. 

I am using PHP5 and MySQL and am currently using this to simple populate a web page. 

1.  How can build a brand new "REAL" page such as about.php or article25.php, programatically??

 

2.  Is it possible to create the SQL statement for the new page as hard coded with the next available row from the content table in the Db?

example: if the current content row is "5" can I generate the SQL to say "WHERE content = 6;"??

 

I sort of envision a two step process where the generic page is created and given the next available id in the content table. step 2 would be to put the content in the database.

 

Is this how you would do this?  Are there better alternatives?

 

Thanks

Dave

Link to comment
https://forums.phpfreaks.com/topic/129422-creating-new-pages-on-the-fly/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.