I'm not sure why you are using a hand coded connection file. I'd have to get a copy of that file to tell you what is wrong with it, but if you just used the Dreamweaver mysqli connection dialog to create your connection then I'm sure it would have the correct syntax.