Hey dude, sorry, think I've scored a hatric for posts today! $row['customer_ref'] contains the customers id number such 1, 2, 3, 4, etc. Don't think I need to use this? I've tweaked it slightly and it's now echoing the right amount of fields (one) for each record instead of 50 or so when using the $row.
Trouble now is, each fields name is delete1. Instead of incrementing, but guessing this is because of the while loop the foreach is contained in. So all in all, I'm guess I'm snookered. Apologies, this must sounds really confusing!