PHP Updates

I think I understand it now haha. Have yet to test my code because I'm
still working on finalizing the tables (+I may still be missing some
components) but theoretically I understand it.