The simple answer is "Yes, that query will increment the counter field column of the subjects table in all rows where the id column is 512."
The longer answer is "Well, that depends on what you mean 'result'."
In MySQL, the return value of an UPDATE query is the number of rows updated. If your query executes without any problems, but the WHERE clause doesn't match any rows, the return value will be zero, which many people incorrectly interpret as "false" or "error".
In PHP, this "return value" is the number returned by calling mysql_affected_rows().
Another common mistake is calling mysql_num_rows() instead. mysql_num_rows() returns the number of rows in the result set of a SELECT query. mysql_affected_rows() returns the number of rows affected by DELETE, INSERT, REPLACE, or UPDATE queries.
Take care,
Nik
http://www.bigaction.org/