473,387 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Best Topics Rating Using MySQL

1
I have a rating system on a forum I'm building. Users can rate a topic either good or bad. For each Good rating, one point is added to the topic's score. For every Bad rating, one point is subtracted to the topic's score.

Each time a rating is made, several things are inputted into a MySQL table called ratings

rating_id
rating_date
rating_username
rating_topic
rating_value

What I want to be able to do is query this table to grab the highest rated topics and lowest rated topics in a given time period. My MySQL knowledge is pretty limited right now, so any help would be much appreciated.

Thanks.
Jan 20 '06 #1
0 2061

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Stijn Goris | last post by:
hi all, I want to decrement all the rows in a column that contain a number that is bigger then one defined by me. Is there some function in mysql or php that makes this task easy or do I have...
1
by: Nikola Skoric | last post by:
Hi there... Yes, I know there exists a suport forum for discussion about problems with phpBB, but noone there seems to know the solution to my problem... so I ask here. I've been messing...
0
by: Jim Heavey | last post by:
I am wanting to create a data screen using the datagrid. Perhaps the datagrid is not the best choice for this particular project, but I and wanting to try to use the datagrid so I can learn how to...
2
by: alex | last post by:
I need a more advanced formula than just an average for calculating items rating. I have: raitng value is on scale 1 to 10. s - sum of all ratings for an item n - number of rates (votes)
6
by: TurboFool | last post by:
Alright, I need to learn PHP, but honestly I'm having trouble with some of the online tutorials for two reasons: 1. They're incredibly dry and tend to just say what things do instead of going...
4
by: bp90210 | last post by:
If you have a few minutes, I would like to see if anyone can help me out. I'm trying to modify a rating script. Currently, It allows you to vote over and over. What I want to do is after you vote...
4
by: clintonG | last post by:
I've been searching around and also ask for your recommendations for a rating solution, i.e. I'm a small potato and prefer C# open-source at no cost but also seek recommendations for commercial...
1
pradeepjain
by: pradeepjain | last post by:
Hii guys i need to start a project(website) product rating website! I need to do a mysql design I never have done big project mysql design i need few tips on this ! Like what all tables...
1
pradeepjain
by: pradeepjain | last post by:
Hii guys , I have several products in my mysql database and i wanna allow the authorized users to rate the products !! i am clear till this point like it has to be done with the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.