i have a rating system with 6 different ratings:
rat_0 thru rat_5 and what i want to do is when the user specifies
which rating they want to choose 0 being bottom and 5 being the top
so when they chose a rating i want it to increment that field in the db i was thinking something along the lines of this but am not sure how to do it:
if ($rating == 0) {
$ammendrating = mysql_query("UPDATE tablename SET rat_0++ WHERE id=$id");
}
im pretty sure its wrong
will i need to do another query to get the previous amount then increment it then update the table?