it seems that vb inserts a new attachment id for everypost made, and only inserts data to it when needed, thus the script is reading all attachemnt ids and is showing the blank ones aswell, so im gonna need to work round this and get it to check to see if fle data is empty before outputting the files