This is my code:
$bookresult = mysqli_query($db, "SELECT bookID
FROM order_items
WHERE orderID = '".$orders['orderID']."';");
The problem I have is that there are multiple bookIDs that are pulled out of MySQL. So when I do this:
$books = mysqli_fetch_array($bookresult);
There is no way for me to get all the bookIDs that should show when using that select statement, unless I'm doing something wrong.