Whenever I write PHP, I try my hardest to avoid using MySQL. I think it's a hassle and it should be avoided at all costs. So, I usually try to come up with a way to "base" my PHP scripts. Basing means I can call accounts, pages, or whatever without the use of a MySQL database.
Now one of the most popular things that people do with MySQL databases is create Pagination scripts (think index.php?id=1 and index.php?page=derp).
When they use a database, they have their PHP script search the table for the relevant page (AKA "dork") and it will display it accordingly. Simple, right?