Answer the question
In order to leave comments, you need to log in
User region specifier for Yii, which one to choose?
Site on the Yii framework We
are developing a service for the selection of banking products. You need a script or some kind of service through which you can automatically determine the city (for Kazakhstan) of the user who logged in.
Answer the question
In order to leave comments, you need to log in
As far as I understand, it's enough here:
UPDATE testbase SET count_clicks = count_clicks - 1 WHERE id = 1 AND count_clicks >= 0
In response, mysql should return an answer about how much the record was changed as a result of the query. If 1 means he is the first, if 0 is changed, then the counter is already negative and he is not the first.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question