Changed Team Model to store Player Objects
Got the first stage of processing the Data working. It's not completely working with the website yet, but it does now work. Still need to do validation etc!
Added Processing to the View for Registering a Team. Does Verification Checks for most things except Team Name and Contact Name (I'll get to that at some point)
Updated Wattball Registration to MVC Model but having a few issues with loading the website properly. Need to get Yohann to look at it!
bug fix for the registration !

I resolved all the bug and I put it on the branshe 'wattBall_reg' on git
!

First, I made a mistake when I told you what was the target in
'action=myfile.php' for the form, it's not
controller.php but index.php

And, when you call a file with 'include_once' you don't have to write
'../' (for example: '../model/
team.class.php') because all the different files are included in file
'index.php'
so, all the file's path must be write like if you want to include them
from the index.php file
( I don't know if I'm clear ^^)

Another huge mistake: you don't have to write the php code for connect
the database each time you want to
make a SQL request, this code is already wrote in index.php. If you want
use the
variable $db, each class have one and you can use it with this code:
$this->db
That mean you have to put all your SQL request in a class file ! (the
normal way with MVC)

So, that mean the php code at the beginning of the view
'wattballregistration' is on the wrong place ! So I
delete it and add it in the file 'mainController.php' in the function
'loadPage'

And, you don't have to write the code to include a class from the model
folder, it's done automatically
with the first function in the index.php !

The request to add the players in the database doesn't work, so check it
! Bu be careful, when you write an
insert request you don't have to write '0' for the id because the
database automatically increment and create
it ! Else, you can have serious bug (like all your informations with the
same ID.. ^^) the best way is:
insert into mytable (field1,field2,...,fieldn) values( 'value of
field1','value of field2',...,'value of fieldn')

So You can choose the fields ! for example: insert into wattball_players
(teamID,playerName) values (id,'name')
Fixed Bug where Players weren't being added to Database (Typo in the Query) and Added Security Measures for $_POST variables.
Added a New SQL File which has a Bug Fix. Please note it's a dump from phpmyadmin.
Merge branch 'master' of https://github.com/afleming1992/thirdyeargroup