Quote Originally Posted by conor View Post
No problem.. thought I may as well make the code cleaner if it was going to be used by anyone else! :)
Hah! I started out with that statement but i couldn't get it to work, don't remember the exact error but after a few hours i gave up and came up with the count (which i knew was second best)

Now i pasted your code in and it works like a charm.
Something tells me my php learning curve has just started

thanks for the input.
Jeroen