Thanks Dave
I am slowly making my way through the php manual and it is helping, but unfortunately very slowly.
It took me over 24 hours to debug my last problem (which made me start this thread)
I am surprised that DW can't find missing ; or unmatched pairs of brackets (I know there is a thing for braces within DW, but its not great.
Anyway, thanks for your input and back to the hard way or asking you kind people that know more than me to help out.