Answer the question
In order to leave comments, you need to log in
How to change the values of only one line in the database?
Hello, there is a table in which there are rows with a unique id and data that need to be changed (likes_count)
To change the data, I used the following query:
SELECT id FROM `users` WHERE `id` = '$rows ['id']'; UPDATE `users` SET `likes_count`= '2' WHERE 1
Answer the question
In order to leave comments, you need to log in
UPDATE `users` SET ``likes_count` = "Value to change to" WHERE `id` = id to change to
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question