Hi Steve
My guess would be that it's something to do with the arguments attributed to the connect function.
What have you actually put in the brackets? Is the essential argument (the database name - username and password are optional) included? I only suggest this because I've made the same slip a load of times myself.
Perhaps you could send the whole block of code that attempts to establish the connection, and the problem may reveal itself.
Bye for now, Al