in reply to SQL query using dynamic array

Please reduce your code to only the relevant part. You seem to say that the email part works, so please remove that part from your program, as it doesn't/shouldn't have influence on the rest of the program. Then test whether the problem still persists.

Having a minimal program helps us to help you better. It is easier to find a mistake in a small script than it is to find a mistake in a large script.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.