I am developing a fantasy football application.When the user makes choice of players, i need them to be stored in a seperate table,that applys to only them,so that when the user is logged in i can retrieve the values from the table and display in a bean.
So it will be titled whatever the username is at the time.. So it will be something like
CREATE TABLE `//username goes here` (
im using jsp but i would imagine to insert the username as the title of the sql i would need a javascript function??
my table will look something like this,although i may have to alter it,as the values of the players may need to saved also
`goalkeeper` char(100) default NULL,
`leftback` char(100) default NULL,
`centreback1` char(100) default NULL,
`centreback2` char(100) default NULL,
`rightback` char(100) default NULL,
`wingleft` char(100) default NULL,
`centmid1` char(100) default NULL,
`centmid2` char(100) default NULL,
`wingright` char(100) default NULL,
`striker1` char(100) default NULL,
`striker1` char(100) default NULL,
PRIMARY KEY (`//not defined yet`)
) TYPE=MyISAM;
Any help would be greatly appreciated with this
So it will be titled whatever the username is at the time.. So it will be something like
CREATE TABLE `//username goes here` (
im using jsp but i would imagine to insert the username as the title of the sql i would need a javascript function??
my table will look something like this,although i may have to alter it,as the values of the players may need to saved also
`goalkeeper` char(100) default NULL,
`leftback` char(100) default NULL,
`centreback1` char(100) default NULL,
`centreback2` char(100) default NULL,
`rightback` char(100) default NULL,
`wingleft` char(100) default NULL,
`centmid1` char(100) default NULL,
`centmid2` char(100) default NULL,
`wingright` char(100) default NULL,
`striker1` char(100) default NULL,
`striker1` char(100) default NULL,
PRIMARY KEY (`//not defined yet`)
) TYPE=MyISAM;
Any help would be greatly appreciated with this