Well, the $$sql is working fine, because it does the insert. It is the $$newpubid and $$newpubdate that aren't working properly. I need to know another way to get the same result, though.
I need each loop to have $$newpubid = $pubid1, $$newpubid = $pubid2, etc, etc....
Any ideas on how to accomplish this in the values section???