text: Many hosting companies have already created a database for you and they might not let you create any of your own.  Check with your hosting company to see if you have the permissions to create databases (as opposed to CREATE TABLE).\n\nAlso, I'm assuming that you were able to CONNECT to the MySQL host like this:\n\nmysql_connect("$DBHost","$DBUser","$DBPass");\n\nYou have to CONNECT before you can do anything else.