query 1 gets the teamid from the session i when the manager is logged in it selectes the teamid from the users table or at least thats what i want it to do 😕
and i use phpmyadmin but i dont no how to view my constraints to show you my foreign keys
admin
Field Type Null Default Comments MIME
username varchar(100) No
password varchar(15) No
competition
Table comments: InnoDB free: 26624 kB
Field Type Null Default Comments MIME
compid int(11) No
compname varchar(50) No
minteams int(11) No
maxteams int(11) No
comptype varchar(30) No
entercomp
Table comments: InnoDB free: 26624 kB; (teamid) REFER f6069939/entercomp(teamid); (`compid
Field Type Null Default Links to Comments MIME
teamid int(11) No entercomp -> teamid
compid int(11) No competition -> compid
players
Table comments: InnoDB free: 26624 kB; (teamid) REFER f6069939/team(teamid)
Field Type Null Default Links to Comments MIME
playerid int(11) No
firstname varchar(50) No
surname varchar(50) No
position varchar(5) No
number int(11) No
teamid int(11) No team -> teamid
team
Table comments: InnoDB free: 26624 kB; (teamid) REFER f6069939/user(teamid)
Field Type Null Default Links to Comments MIME
teamid int(11) No user -> teamid
teamname varchar(150) No
user
Table comments: InnoDB free: 26624 kB
Field Type Null Default Comments MIME
username varchar(300) No
password varchar(15) No
name varchar(150) No
teamid int(11) No
well this is the only way i think i could show you how they all go hope this helps and many thanks for looking 🙂