I meant:
on the order results page, create a link to the order details results page.
the problem is that your link passes the ID value, but does not assign a name.
change:
orderdetails_Results.php?<?php echo $row_WADAorders['OrderID']; ?>=
to:
orderdetails_Results.php?id=<?php echo $row_WADAorders['OrderID']; ?>