:DThat's it!!!

Thanks so much for your help sillyworm - it was the 'mysql_data_seek($CartContents, 0);' line just before the loop that's fixed it. You've made my week!

wildwildwebs