ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-db
php-db
Re: [PHP-DB] database design question
by olinux other posts by this author
Sep 29 2003 8:21AM messages near this date
[PHP-DB] database design question | [PHP-DB] Re: database design question
i would add a second table and also store the totals
in the lyrics table like you suggested

then you can do things like top 10 this week / top 10
this month and make sure its not being abused 

LYRICS_RATINGS - id | lyric_id | rating | vote_date |
remote_addr

same idea for hits/impressions

olinux


--- John Ryan <celticfc@[...].ie>  wrote:
>  ive a table called 'lyrics' which is the main
>  content on my site, song
>  lyrics. im thinking of introducing rate this lyric
>  and all that kind of
>  stuff into the site. would it be better, from a
>  design point of view, to
>  create a second table for lyrics ratings and hits or
>  just add a 'ratings'
>  and 'hits' field names to the exisitng table??
>  
>  -- 
>  PHP Database Mailing List (http://www.php.net/)
>  To unsubscribe, visit: http://www.php.net/unsub.php
>  


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
John Ryan
olinux
Shadow

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved