at my work we have a system my boss developed where we have one page (index.php), and the different pages are stored within a database instead of different page files.
I was wondering if anyone knew any good tutorials on how to do this? Or if any of you would be able to help me in code it up?
The following tutorial walks you through how to accomplish what you described. However, I would suggest you just skim over it and write something from scratch which uses better coding methods.
http://www.php-mysql-tutorial.com/wikis/mysql-tutorials/content-management-system-cms-using-php-and-mysql.aspx