What do you want me to do with the other site? If it works then it must be correct.
The way that dreamweaver connects to your database is:
1) It uploads a _MMServerScripts folder to the root of the testing server site
2) It uses the web url to browse to the files in that folder
If your site root doesn't match the server url, then dreamweaver can't connect to the database. This is the same for php6 and php7.