Here are the two tables:
orderdetails
-------------------------
DetailID (PK)
DetailOrderID
DetailProductID
EventID
DetailName
DetailPrice
DetailQuantity
orders
------------------------
OrderID (PK)
OrderAmount
OrderShipName
OrderShipAddress
OrderCity
OrderState
OrderZip
OrderPhone
OrderEmail
OrderDate
This code seems to work, but I don't know how to query the $result array.
$result = mysql_query("SELECT * FROM orderdetails WHERE EventID =" . $_GET['EventID']) or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo "DetailID: " . $row['DetailID'] . " | DetailOrderID: " . $row['DetailOrderID'] . "<br>";
}