I should mention that phpmyAdmin and mySQL are installed and apparently correctly set up on the Windows Server.
Andrew – thanks for the comment. Hadn’t come across pastebin before! Here you go
Samuel – thanks, I’ll give that a go 🙂
Oops, I referenced an attached file in the original post. The file containing the code can be found here