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')