this error usually happens if you have named the database connection and the eCart object the same.
make sure to use unique name for all application objects like connection, recordset and eCart object.
if you continue to have a problem, what is the code for the first 10 lines of the confirm.php page?