[2 / 1 / 1]
Quoted By:
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.
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.