Hello everyone and this is my first post as I am completely new to PHP but trying hard to pick it up. 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. I have created an MySQL database on GoDaddy and a duplicate on my laptop with phpmyadmin. 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 a connection to the database on localhost and the data from the form inserted into the datbase perfectly. Copy the Hostname for use in your FTP app, and then select Create New Login. Under Production Site, find SSH/SFTP login and then select View or Change. Select the site you want to use, and then select the Settings tab. Now I need to adapt that same form to do exactly the same but input info in my database on GoDaddy. On your My Products page, next to Managed WordPress, select Manage All. I have looked on their help section and used the example that they give. 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. Can someone please take a look at this and tell me where I am going wrong. ![]() I have changed the actual details with capitals to show you. and on the button click event the connection is made and the values are shown in textboxes. In my windows form there are two textboxtextbox1 and textbox2. 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 designed a windows form and want to connect to sql in phpmyadmin using wampp database using C language.Please give me the whole code with all header files etc. 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. For example: Select the database that you want to access using mysqliselectdb. ![]() $con = mysql_connect('HOSTNAME','USERNAME','PASSWORD') There are two main steps to connecting to a MySQL database using PHP.įirst, connect to your MySQL server using the mysql_connect statement. Connect to your MySQL server using the mysqliconnect statement. ![]() You can log in to your hosting account manager to find the hostname, user name, and password for your database. Next, select the database that you want to access using mysql_select_db.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |