Thank you, Jason, works fine now and I even understand the logic behind your explanation. Progress! Eventually will move this client back to their own server at 1and1 where we have to upgrade to a hosting package that will allow php files to connect to database.