Instead of telling us its sorted, you should explain the problem and how you solved it. This way we can share knowledge. Peace,
Ok, Basicly (Was kinda dumb of me i guess) I wrote a function and in the end of the function i was echo'ing the out come so when i was including the page with the function on it was outputting it with out me calling the function So i had to change echo to return