sorry i seem to have mislead you, all the rows will be full with fields from the database information but the bottom one is a product url i need to put a buy now image that i have in its place but with that a link from the database field .
So when the customer clicks on that image it takes them to the
ok well the code looks fine.
can you please post an example of productUrl?
like just one of the entries so i can see the html code within the url that might be stuffing it up.
for example if you have some " double quotes it will stuff up and you will need to replace with char references (here)