@Daniweb2011, please open your own thread with your question. You will receive no answers from here because this thread is very old AND it belongs to another member.
You also need to give us much more information of what you need, just asking for code will not get you any solutions either.:) Also change your title, the current one will most definitely not get you any replies.;)