Since it was so difficult draw a question out of the basic description I gave earlier, Here's a direct question:
How can I loop through an array of entries in a database and display a table with three columns.
Here's an example of basically what I need for each iteration in the loop:
<table>
<tr><td>
<div>Name</div>
<div><img src="image.png" /></div>
<div>Thi is a short decription for product1<div>
<div><input type="button" value="Use Points" /><div>
</td>
</tr>
</table>