Hello
I created a PHP script that takes information from a html page then puts in into a MySQL database. The script works ok when i use it on my laptop and local server, the problems arise when i upload it to my website as it doesn’t connect to the server.
I’ve made sure the DB host, username and password are correct but still nothing. The only difference compared to running it on my local server is where the files are located. On my website all files are in the same directory whereas on my laptop they are located under the htdocs directory. Would this be why the script is not working? And if so, where is the htdocs directory for my webhosting server located?
Many thanks
Steve