It is probably just that the webassist include file is too low on the page. Dreamweaver is notorious for doing that sometimes. Make sure the mysqli include files are on the top of the page and this error should go away. If you attach a copy of the php page I could be more specific about what line to move to where.