I am trying to create a button, and in the link use data from the row, but using the below prevents the page from loading.
Current code:
while ($row = oci_fetch_array($stid, OCI_ASSOC)) {
    echo "<tr>";
        echo "<td><code>" . $row['OrderNo'] . "</code></td>";
        echo "<td><a href='viewOrder.php?id=' . $row['OrderNo'] . ' class='btn btn-primary'>View Order</a></td>";
    echo "</tr>";
    unset($row);
}
Is there an error in the code or is it just not possible to do this?
 
     
     
     
     
    