These are simple problems. I could fix these in only a couple hours - but that does not guarantee that the application would work as desired - only that the page would display correctly and the mysql database accessed.
I admit that I am not familiar with the specific web application
that you are trying to use, but I have been doing large scale
php/mysql development for quite a few years now, even managed to develop my own web based MMPORG from
scratch (tribestrive).
I can not only fix the problems you specify here, but I can get
the application working to your satisfaction.