Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 12th, 2003, 08:36 PM
jag5311 jag5311 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 69 jag5311 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 37 sec
Reputation Power: 5
Anyone ever build a gaming database (games website)?

I am in a rut. I am trying to logically setup a database for a gaming website, and I am stuck. It all comes down to separating the games. I just need to know if I am doing this right.

Ok here is what I currently have

Code:

Table: games

Fields:

gameID (primary)

game-name

 

Table: categories

Fields:

Action

Sports

RPG

etc..

 

Table: cheats

Fields:

cheatsID

gameID

cheat-info

cheat-title

 

Table: reviews

Fields:

reviewID

gameID

review-info

author

author-email

rating

 

Table: walkthru

Fields: 

walkthruID

gameID

walkthru-info

 

Table: screenshots

Fields:

screenshotID

gameID

smallpath

largepath

 

Don't quite know what to do with previews, 

as it shouldn't have a preexisting gameID in the database if its not fully functional.

 

so

 

Table: preview-games

Fields: Null (for now)

 

table: friends

Fields:

friendID

sitetitle

sitedescription

siteurl

 

Table: news

Fields

newsID

newstitle

shortdescription

news-url

news-full




NOw I have it setup this way so that if someone clicks lets say, "Super Mario Bros: 2030 j/k, that a list of the cheats currently for that game will be listed, hence why i have in the table, the field gameID and gamename. Then gameID in table cheats has a relationship with the one in the table games.


Make sense?


If there are any other recommendations, I would appreciate it.


Thanks

Bryan

Reply With Quote
  #2  
Old November 13th, 2003, 01:57 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
What you have at the moment looks quite good.

I think game previews would be just be a list the game name and blurb about it.

Reply With Quote
  #3  
Old November 13th, 2003, 08:12 AM
jag5311 jag5311 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 69 jag5311 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 37 sec
Reputation Power: 5
Thanks a.koepke.

offtopic - I apologize for pissing you off yesterday with that link, it wasn't my intentions. I didn't know when posting that link that it would try to load a file save window.
sorry again

Bryan

Reply With Quote
  #4  
Old December 5th, 2003, 02:54 AM
sentinal sentinal is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 2 sentinal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to sentinal
I think u've got it :P the site looks like it's going to be simple, that's good, gl =D

as for previews, since the game is coming out anyway just create the game in the [games] and maybe add another field in that table (games): released , which would allow you to filter out the unreleased games...

oh another thing, I think you should change the way [categories] and [games] link together, right now I'm guessing ur going to put 0's and 1's in each field in [categories] depending in whether the game is in this category. This method would be slow if you want to filter lots of games, you basically have to scan every single field in the table to say whether 1 game is in this category.

I would suggest just assigning a categoryID to each category name and add a field in [games] that links to the categoryID, that way u don't have to do 2 long searches as the categories' select statement will execute quickly that way...

so in summary changes:

Table: games

Fields:

gameID (primary)

game-name

categoryID

released


Table: categories

Fields:

categoryID

category_Name



that reminds me again... I think it's better not to use "-" in any table or field names it might think it's a "minus" use "_"

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Anyone ever build a gaming database (games website)?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway