BTW the parameters need to be in the order ("localhost", user, password, database_name)
But you said it works fine if you only have one query so it may be you had the correct code for connecting to the database. Try using the query Sarettah described, the ones you wrote don't make sense.
|