thanks you two you have been very helpful I just wanted to know if I was missing something. I'll try both of your ideas first one is good for testing; I know sql so queries are no problems but the second one looks more efficient but can you tell me how to make a hook or some tutorial maybe because I haven't done that before