Answer the question
In order to leave comments, you need to log in
How to make a SQL query from a button in an HTML table?
Hello! I have a table like this at imgur.com/kCvDJo9 , it is built according to this code: imgur.com/y4DQBUG , and here is a database table from which imgur.com/JyKpMyl table values are taken .
Please tell me how can I make it so that when you click on the "Paid" button, the status of the line with the corresponding ID changes from 0 to 3? I've been studying PHP for half a month, I'm very confused about arrays. Especially when it comes to tables.
Preferably in more detail. Thanks in advance! I love all.
Answer the question
In order to leave comments, you need to log in
Completely unrelated things - a table in a database and a button in an HTML page.
1. Insert the button inside the HTML form
2. Accept the form on the server
3. Run a request to update the data in the database
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question