Answer the question
In order to leave comments, you need to log in
How to make a request using AJAX?
Hello.
You need to write an AJAX script that will change the value in a field in the database. (The default is 0)
You need to add 1 to the like field by clicking the button.
And so for each post separately. I know the post id.
DB structure:
-Commentary
---id
---text
---author
---post_id
---like
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question