I was wondering would it be possible to check if a MySQL database existed, and if it doesn't to create it then connect to it and if the database does exist just connects to it.
I can do the connecting to the database and I can do the creating the database, but i can't figure out how to check for the existance of the database.