Still no good. there was a semicolon missing also which I fixed here
if($x!=0) $output.=",";
But when I hit the Export Spreadsheet I get a 500 error
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.