The database connection is fine. I have been creating MySQLi today.
I had tried these options before re-installing everything. I have just tried them again and now Dreamweaver locks when you give focus to the dynamic select so I am now uninstalling and re-installing everything. I am sure the error will reappear after this has been done and will update this tocket in about 30 mins.