What version of eCart do you have installed? I believe this error may be corected in a more recent build.
It could be an issue with naming your recordset with underscores. Dreamweaver has issues with that syntax which may be cascading into your add from recordset eCart behavior.
The code snippet you sent looks right... what is the issue you are having with it runtime?