Jump to content

Multiple Pages in PHP


xerox02

Recommended Posts

Basically, people are going to be posting on to mysql database, but I want to display all the information they are posting to me site, but one entire page can't fit all the information, so I want to make to automatically make another page when it exceeds the limit 4 (so 4 rows of data from mysql per page.) So I want the code to copy the code of the other page, and just make a new php file, or something that will make it so I can have a new page to have room for the mysql rows.

Link to comment
Share on other sites

Yes, you can use it on your own site.  Only stipulation is that in no way can you ever hold myself or anybody else at phpfreaks responsible for any mishaps, damage, etc.. resulting from the use of it. 

 

Just keep in mind that with tutorials, there are oftentimes better ways to actually implement the principle.  Tutorials are meant to strip things down to the basics, often disregarding things like security, scope, elegance, etc... because the point is to teach you the principle in general.  There is minimal validation included in that code but a lot more can/should be considered, depending on what else you've got setup.  Also, many people like to abstract that stuff into a class to make the page code cleaner.  Etc....

 

Point is, although it technically works "out-of-the-box", it's a tutorial with sandboxed code to help you learn something - a starting point. 

 

Link to comment
Share on other sites

Yes, you can use it on your own site.  Only stipulation is that in no way can you ever hold myself or anybody else at phpfreaks responsible for any mishaps, damage, etc.. resulting from the use of it. 

 

Just keep in mind that with tutorials, there are oftentimes better ways to actually implement the principle.  Tutorials are meant to strip things down to the basics, often disregarding things like security, scope, elegance, etc... because the point is to teach you the principle in general.  There is minimal validation included in that code but a lot more can/should be considered, depending on what else you've got setup.  Also, many people like to abstract that stuff into a class to make the page code cleaner.  Etc....

 

Point is, although it technically works "out-of-the-box", it's a tutorial with sandboxed code to help you learn something - a starting point.

 

thanks a lot man! you save me hours!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.