so if i had say 1 record set with a SQL statement of
SELECT users.UserID, orders.OrderUserID, orders.OrderID, orderdetails.DetailOrderID, orderdetails.DetailProductID
FROM users, orders, orderdetails
WHERE orders.OrderID = orderdetails.DetailOrderID AND orderdetails.DetailOrderID = orders.OrderID AND users.UserID = paramUserID
paramUserID Varibles with $_GET['UserID']
then the following should work in theory.
<?php if ($row_rsCourse['DetailProductID'] == 1) { // Show if column... ?>
<span> <a href="users_ST_update.php?UserID=<?php echo($row_WADAusers["UserID"]); ?>"><img src="images/ST500DetailButton.png" alt="" width="200" height="38" /></a></span>
<?php } // Show if column... ?>
and
<?php if ($row_rsCourse['DetailProductID'] == 2) { // Show if column... ?>
<span> <a href="users_ST_update.php?UserID=<?php echo($row_WADAusers["UserID"]); ?>"><img src="images/DetailButton.png" alt="" width="200" height="38" /></a></span>
<?php } // Show if column... ?>
So if customer purchases course 1 all that will show is button for course 1 and if they purchase course 2 the just button 2 will show.
Therefore if they purchase both courses both buttons will show?
Regards
Jonathon