Jason: Really sorry for wasting your time by attaching the wrong file--my error. Saved file as "_2" since I reverted to single insert to be able to make it functional. This is the version that failed (see error message below for referenced file).
Parse error: syntax error, unexpected T_ELSE, expecting T_WHILE in /home/thirdco/public_html/Transaction/rank_mb_add_2.php on line 217
Thanks.