I have created a "simple" test example of this. (The other one comes from a much larger set of q's, but the principles are the same...).
The code with the $FID_num works in php but not the tester. The code without the $ (ie, FID_num) works in the tester, but NOT in the live php.
Now that I know how it works, I can live with it, as all you have to do is test, but once the test works, do NOT let WA write the code until you have re-inserted the $.
Thanks so much for your help and cosideration. I am so pleased to be using WA again. (I had to switch to Scriptcase some time ago, as you guys did not support mysqli, but now you do.)