Insert Function isn't working!!

I have some code(below) that the INSERT function wont work. The error message displayed is: “Fatal error: Uncaught exception ‘com_exception’ with message 'Error [0x8002000e] Invalid number of parameters.”

[php]

<? if ($a == 1) { echo "\n"; } ?>[/php]

what’s that(?) - total is not declared, yet, and you simply write it… and only then you declare it:
echo “total; \n”;
echo “var total = 0; \n”;

and the Col1 is not declared either.

Or am i getting something wrong here?