hello I have a table with users order information.
my admin has 2 buttons in that table they can click
one gives the user a high discount and the other one gives them a low discount.
only problem I'm having is that the buttons don't delete afther they have been clicked.
here is that part of the table
<pre> echo "
echo "Hoge korting";
<a class='btn btn-success' name='bevestigen' href='bevestigen.php?order_ID=".$row['order_ID']."&hoge_korting=1&email=".$row['email']."&naam=".$row['naam']."' role='button'> Ja </a> //hight discunt yes
<a class='btn btn-danger' name='afwijzen' href='afwijzen.php?order_ID=".$row['order_ID']."&hoge_korting=0' role='button'> Nee </a> //high_discoun no
this however shows the table like this
I want something like this afther button has been clicked
What I have tried:
I tries putting the button information in the if statement but then it either gives all of them
or all of them
tried looking it up on the internet but they are talking about deleting the row. I don't want to delete the row I just want to update/edit it