Connect to database using MySQLi
Copy this code and paste it in your HTML
define('DATABASE', 'analytics');
$database = new mysqli(HOST, USER, PASS, DATABASE);
$database->query('SET NAMES '.ENCODING);
Report this snippet
Comments
Subscribe to comments