OK, i've finally found the biggest problem with my code... it was a missing bracket in a MySql query *rolls eyes*
Just putting finishing touches on the code and i'll open it to everyone. Of course it's all still plain text, but if anyone wants to create graphics for it