<table>
<tr>
<th>
Reciept Number
</th>
<th>
Purchase Date
</th>
<th>
Membership Package
</th>
<th>
Total Membership Price
</th>
</tr>
%%[
var @CustomerID, @rows, @row, @rowCount, @i, @ReceiptNumber, @PurchaseDate, @Package, @Price
set @CustomerID = _SubscriberKey
set @rows = LookupOrderedRows('DE1', '0','Date DESC','ID', @CustomerID)
set @rowCount = rowcount(@rows)
if @rowCount > 0 then
for @i = 1 to @rowCount do
set @row = row(@rows,@i)
set @ReceiptNumber = field(@row,'Receipt Number')
set @PurchaseDate = field(@row,'Date')
set @Package = field(@row,'Item')
set @Price = field(@row,'Price')
]%%
<tr>
<td>
%%=v(@ReceiptNumber)=%%
</td>
<td>
%%=v(@PurchaseDate)=%%
</td>
<td>
%%=v(@Package)=%%
</td>
<td>
%%=v(@Price)=%%
</td>
</tr>
%%[ next @i ]%%
%%[ else ]%%
%%[ endif ]%%
</table>
<table>
<tr>
<th>
Reciept Number
</th>
<th>
Purchase Date
</th>
<th>
Membership Package
</th>
<th>
Total Membership Price
</th>
</tr>
%%[
var @CustomerID, @rows, @row, @rowCount, @i, @ReceiptNumber, @PurchaseDate, @Package, @Price
set @CustomerID = _SubscriberKey
set @rows = LookupOrderedRows('DE1', '0','Date DESC','ID', @CustomerID)
set @rowCount = rowcount(@rows)
if @rowCount > 0 then
for @i = 1 to @rowCount do
set @row = row(@rows,@i)
set @ReceiptNumber = field(@row,'Receipt Number')
set @PurchaseDate = field(@row,'Date')
set @Package = field(@row,'Item')
set @Price = field(@row,'Price')
]%%
<tr>
<td>
%%=v(@ReceiptNumber)=%%
</td>
<td>
%%=v(@PurchaseDate)=%%
</td>
<td>
%%=v(@Package)=%%
</td>
<td>
%%=v(@Price)=%%
</td>
</tr>
%%[ next @i ]%%
%%[ else ]%%
%%[ endif ]%%
</table>