If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > need help with my database design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-12-10, 17:06
Croga Croga is offline
Registered User
 
Join Date: Jun 2010
Posts: 3
need help with my database design

I really really cant get my head around this, i've thought about this for ages to the point of frustration that now im coming on here looking for advice. I have just started learning php and sql so for all i know its probably really simple. I want to create a football application with leagues, fixtures, and results for a pc football game that a group of us in college play. The idea is this,

User can log in. Manage a team, check fixtures, update their match results, view results, and check league table.

I can do pretty much all of this except for the fixtures/results. Here is my database so far, for what it's worth.

tblUsers (
id PK,
username,
password,
team_id FK (referencing id of tblTeams)
)

tblTeams (
id PK,
name
)

tblFixtures (
id,
homeTeam,
awayTeam
)

This is where im stuck. Should tblFixtures be like this instead:

tblFixtures (
id,
ownteam,
oppteam
)

Ultimately, what i want to achieve is this. User logs in, checks fixture. Plays against opponent. The home player reports match, puts in score, submits. The away player gets sent the report to accept/deny. Then that saves to the database, updates results table and and league table. Can anyone give me advice to understand how to do this?

Last edited by Croga; 07-12-10 at 17:09.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On