sorry, silly me. End of a long day and having got it working on my test server was a bit shall we say upset ;-(
I've attached all the site files except the images and template files because I'm not at all sure where my error os==is
I've had a look this morning and just cant see why there is no database connection on any of the pages .
I have tested the connection and it is viable.