I'm thinking that I did not explain myself very well
The person could have a photo in the table file_images. note its just the file name saved in the mysql table and not the photo the photo is saved in a folder called user_images.
Its okay if the user does not have a photo for the folks that don't have photos I want the file "blank.jpg". to display.'
The last snippet of code I posted will show the photo is one is found for the user but if there was no photo found its giving an error message are because of the foreach statement.
I think the problem is there are more buddy then photo[user_ids] and the loop has nothing to compare to.
hope this helps explain it better and thnk you for taking time to reply
cheers
kp
Note I edited the code I posted above to show all the code this might help explain more
I tried to code you posted above and I get the same foreach error message