Oh, and welcome to PHPBuilder! You'll find helpful people here ... but we don't suffer fools too gladly. Use a sensible subject line, search before posting, format things nicely ... etc.
Also, please think about using plaintext attachments for code. Not everyone likes doc., not everyone has doc, and *txt doesn't generally carry malware. In this case, it was quite short enough you could have easily just put it in PHP bbcode tags 😉