Can a PHP genus check if this code could be improved?It's just your basic structure for a site that pulls content from the database and prints it, with pagination in the mix.I got this from some online tutorial and have been using it, but I don't know how much it makes sense.The "no results" thing was added by me. The original code didn't have any way to handle a situation where there's no row in the database.
Another php question...When building a site with php, should I have all the sub pages just included to index.php or not?Currently my site is basically just>index.php?page=posts>index.php?page=threads>index.php?page=profileinstead of>profile.php>threads.phpThis is so that I can use just one main loop (in the op pic)