Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

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 ASP Free Forums Sponsor:
  #1  
Old February 28th, 2005, 05:25 PM
oldie oldie is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 13 oldie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m 36 sec
Reputation Power: 0
table design help needed

I have a gamming website. I have pages which displays data from other clans.

Members need to register and login to view full clan details. User who have not logged in can only view partial data.

Now I need to keep track of the kind of hits each page received. That is I want to tell clan say X that these particular members viewed your page these many times and on these dates and these members who have not registered have viewed your page these many times and on these dates.

I am using ASP with MS SQL.

I would like some help on designing the tables and layout that is efficient.

Any help will be appreciated.

Reply With Quote
  #2  
Old February 28th, 2005, 09:17 PM
baseballdude_'s Avatar
baseballdude_ baseballdude_ is offline
Expert Learner
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2005
Location: Wisconsin
Posts: 1,890 baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 22104 Folding Title: Starter FolderFolding Points: 22104 Folding Title: Starter Folder
Time spent in forums: 1 Week 5 Days 13 h 21 m 44 sec
Reputation Power: 70
Send a message via AIM to baseballdude_ Send a message via MSN to baseballdude_ Send a message via Yahoo to baseballdude_ Send a message via Google Talk to baseballdude_
Couldn't you have a code identify if the user is logged in or not and--depending on which--is directed to a different part of the page (probably using ASP cases). Then on each part, have it find the number of hits...?

Reply With Quote
  #3  
Old March 1st, 2005, 04:52 AM
musa's Avatar
musa musa is offline
Master MC
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: South Africa
Posts: 43 musa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 9 m 20 sec
Reputation Power: 5
Facebook
Not much info - Just tryin'

Quote:
Originally Posted by oldie
I have a gamming website. I have pages which displays data from other clans.

Members need to register and login to view full clan details. User who have not logged in can only view partial data.

Now I need to keep track of the kind of hits each page received. That is I want to tell clan say X that these particular members viewed your page these many times and on these dates and these members who have not registered have viewed your page these many times and on these dates.

I am using ASP with MS SQL.

I would like some help on designing the tables and layout that is efficient.

Any help will be appreciated.

Each page need to check user login details. you might need to use an include file for this if you have many pages.
Don't forget to have case-sensitivity in your password field in your login table, though. You need to take your time
designing this db; it will save a lot of your time in the future.

I would suggest you create a separate table for the hits of the page; say HitsTable or tblHits which will have
the pageID (foreign key to the Pages table) - the visited page, MemberID (foreign to Members Table) - the member
who visited the page and Date and Time. The memberID of the guest should be unique; just select a number that you
are sure you won't have in the Members table as the member ID. [I think 0 {Zero} would be fine or just a negative number].

Reply With Quote
  #4  
Old March 2nd, 2005, 10:28 PM
oldie oldie is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 13 oldie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m 36 sec
Reputation Power: 0
thanks for your help.

My main concern was the table design so that I have just the required information and do not store unnecesary info to as to fill the DB quickly.

I have it up and running

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > table design help needed


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 6 hosted by Hostway
Stay green...Green IT