why not form an array and use in_array() ?
else seperate the numbers on comma (use explode()), use for loop, check if the number exists in the loop and if no appened at the end of it..
--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.