You have a couple of issues with your code:
<a href="mail/bevestigordermail.php?id="<?php echo $row['order_id']; ?> >
First, you're closing the
href
attribute before you'd actually appended the order ID. You need to move the closing
"
so that it's
after the echo statement, like so:
<a href="mail/bevestigordermail.php?id=<?php echo $row['order_id']; ?>" >
^
Second, you've not named the URL parameter
order_id
, you've named it
id
so it won't be picked up by PHP. If you rename the URL parameter then the PHP file should pick it up:
<a href="mail/bevestigordermail.php?order_id=<?php echo $row['order_id']; ?>" >
^^^^^^^^
Once last remark on your HTML structure, you're wrapping
<button>
elements in an
<a>
element which isn't really a good idea. If you're intending on using a button then might I recommend you use a
<form>
element instead? Something like:
<form action="mail/bevestigordermail.php?order_id=<?php echo $row['order_id']; ?>" method="get">
<button type="submit">....</button>
</form>