Geeze I dunno man from comparing your code to mine (and mine works!) it looks exactly the same...the only thing I can think of is its not pulling the data from $prod correctly, so its not finding the CFSPRODUCTS table and grabbing the data from it???
Have you checked your tables after you have run the script to see if they've ALL been populated correctly????
I use SQLyog (FREE Version) and it has helped me TREMENDOUSLY with real time troubleshooting of my tables and stuff as I'm learning PHP:
http://www.webyog.com/sqlyog/download.html
I wish I could be more help but I am fairly new too (and it doesn't look like a lot of people are responding to the posts, you'd think they'd have an expert on the book monitor this stuff!) so I'm at a los...good luck man.
Mike