I want to add up the 1 vote to a particular position in a database, when the data in the database contains 24 voters, and someone votes i add-up 1 and want to put the outcome (25) back in that position.
So that every time someone votes this number increases with 1.
with a query with the order by pollID desc, voteID asc limit 0,1 i can select this position in the database.
But can I use this order by and limit together with a insert?
Example (this doesn`t work):
$result = mysql_query("insert into mpn_poll_data order by pollID desc , voteID asc limit 0,1
(optionCount) values ('$b')");