Herm, what about this for a table
PHP Code:
Here's the table:
_________________________________
| ID | Img_loc | rating | num_votes |
------------------------------------
Simple little semi-flowchart:
When the voter sees the pic/story/etc, they vote on it, it gets added to the current rating then divide it by two. If you wanted to record the complete total, you'd need to probably make an array which would probably get kinda ugly.
If you want to keep track of all of the votes that someone does, then you'll need to create a login. When the person views a pic, and then rates it, have a seperate table such as:
PHP Code:
User:
___________________________
|UID| Username | Password|
-------------------------
Ratings:
_____________________
|Pic_ID| UID | Rating |
-------------------
So when they submit a rating, it inserts the picture ID, the user ID and their rating. Then when you show the ratings, it'll do a search thru the database and do an average of all of the unique id's and report the totals. Probably missing out on bunchs of it, but I'm only giving it half a thought.