
Mysql_select_db($dbname) Check If Record Exists The name of your database is usually the same as the user name for that database.įrom here, you can query your database using your PHP script.Īlert('Unable to connect to database! Please try again later.'),history.go(-1)") Again, you can log in to your hosting account manager to find the name of your database. Where "DATABASENAME" is the name of your database. Next, select the database that you want to access using mysql_select_db.

CONNECT TO PHPMYADMIN GODADDY PASSWORD
You can log in to your hosting account manager to find the hostname, user name, and password for your database.

There are two main steps to connecting to a MySQL database using PHP.įirst, connect to your MySQL server using the mysql_connect statement. The form below works perfect on my localhost and inputs data just greats.Ĭan anyone please help me adjust this one to work on the GoDaddy database. My other problem is that I want to set up a testing server in Dreamweaver for ny GoDaddy DB to test it out before uploading but cannot find any settings for it and doesn't work with the info that I put in this form for host etc. I have changed the actual details with capitals to show you. Can someone please take a look at this and tell me where I am going wrong. But to no joy, I cannot connect to the datbase despite using the correct login details so I am assuming it must be somehting I am doing wrong with the PHP coding. I have looked on their help section and used the example that they give. Now I need to adapt that same form to do exactly the same but input info in my database on GoDaddy. I have a connection to the database on localhost and the data from the form inserted into the datbase perfectly. I set up a testing server in Dreamweaver for the one on my laptop to try out an input info form and it worked perfectly. I have created an MySQL database on GoDaddy and a duplicate on my laptop with phpmyadmin.

CONNECT TO PHPMYADMIN GODADDY HOW TO
I am completely new to PHP and trying very hard to teach myself how to use it as I am stepping up to database websites. Hello everyone and this is my first post as I am completely new to PHP but trying hard to pick it up.
