@semar, yes now it works, and I see what you mean by my mistake of having the "is_it_there = 0" in there.
@shambler, your solution seems to work fine too.
Thanks all for replies.
@shambler, your solution seems to work fine too.
Thanks all for replies.