Return to Snippet

Revision: 50266
at August 17, 2011 19:06 by elvman


Initial Code
define('HOST', 'localhost');
define('USER', 'root');
define('PASS', 'root');
define('DATABASE', 'analytics');
define('ENCODING', 'utf8');

$database = new mysqli(HOST, USER, PASS, DATABASE);
$database->query('SET NAMES '.ENCODING);

Initial URL

                                

Initial Description

                                

Initial Title
Connect to database using MySQLi

Initial Tags

                                

Initial Language
PHP