xerox02 Posted July 10, 2010 Share Posted July 10, 2010 What I am trying to do is this: Based on the number of mysql rows in my table I want to create a duplicate php page with same code as another page. Quote Link to comment https://forums.phpfreaks.com/topic/207323-multiple-pages-in-php/ Share on other sites More sharing options...
kenrbnsn Posted July 10, 2010 Share Posted July 10, 2010 Why? When you use PHP, you can create different views for the user all from one script. Ken Quote Link to comment https://forums.phpfreaks.com/topic/207323-multiple-pages-in-php/#findComment-1083949 Share on other sites More sharing options...
xerox02 Posted July 10, 2010 Author Share Posted July 10, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/207323-multiple-pages-in-php/#findComment-1083956 Share on other sites More sharing options...
BillyBoB Posted July 10, 2010 Share Posted July 10, 2010 lol so you want a pagination system there is a tutorial on this site about it. Quote Link to comment https://forums.phpfreaks.com/topic/207323-multiple-pages-in-php/#findComment-1083957 Share on other sites More sharing options...
xerox02 Posted July 10, 2010 Author Share Posted July 10, 2010 lol so you want a pagination system there is a tutorial on this site about it. haha ya, kool I'll check that out thanks. Quote Link to comment https://forums.phpfreaks.com/topic/207323-multiple-pages-in-php/#findComment-1083960 Share on other sites More sharing options...
xerox02 Posted July 11, 2010 Author Share Posted July 11, 2010 Can I use the tutorial code on my website? Quote Link to comment https://forums.phpfreaks.com/topic/207323-multiple-pages-in-php/#findComment-1084298 Share on other sites More sharing options...
xerox02 Posted July 11, 2010 Author Share Posted July 11, 2010 bump Quote Link to comment https://forums.phpfreaks.com/topic/207323-multiple-pages-in-php/#findComment-1084559 Share on other sites More sharing options...
wildteen88 Posted July 11, 2010 Share Posted July 11, 2010 Can I use the tutorial code on my website? Yea, I suppose. There is nothing there stopping you. Quote Link to comment https://forums.phpfreaks.com/topic/207323-multiple-pages-in-php/#findComment-1084566 Share on other sites More sharing options...
xerox02 Posted July 11, 2010 Author Share Posted July 11, 2010 Can I use the tutorial code on my website? Yea, I suppose. There is nothing there stopping you. Could I get sued? lol Quote Link to comment https://forums.phpfreaks.com/topic/207323-multiple-pages-in-php/#findComment-1084607 Share on other sites More sharing options...
BillyBoB Posted July 11, 2010 Share Posted July 11, 2010 Read the comments below the tutorial. Crayon Violet, the tutorial creator, commented about this in there. Quote Link to comment https://forums.phpfreaks.com/topic/207323-multiple-pages-in-php/#findComment-1084618 Share on other sites More sharing options...
.josh Posted July 12, 2010 Share Posted July 12, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/207323-multiple-pages-in-php/#findComment-1084624 Share on other sites More sharing options...
xerox02 Posted July 12, 2010 Author Share Posted July 12, 2010 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! Quote Link to comment https://forums.phpfreaks.com/topic/207323-multiple-pages-in-php/#findComment-1084690 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.