<?php $host = "localhost"; $username = "root"; $password = ""; $dbname = "mshop"; $conn = new mysqli($host, $username, $password, $dbname); $conn->set_charset("utf8"); $conn->close(); ?>