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 "
<td>
";
if($row['hoge_korting']==1){
echo "Hoge korting";
}else{
echo "Korting";
}
echo "<br>
<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
</td>";
this however shows the table like this
high discount?
_____________
high discount
[yes] [no]
I want something like this afther button has been clicked
high discount?
_____________
high discount
What I have tried:
I tries putting the button information in the if statement but then it either gives all of them
$row['hoge_korting']==1
or all of them
$row['hoge_korting']==0
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