Last active
September 12, 2015 09:16
-
-
Save vitqst/a65408418b9bc8a3d86a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$host = "localhost"; // host name ... | |
$user = "root"; // username database | |
$pass = ""; // pass database | |
$database = "vietbook"; // choose database | |
$connection = mysqli_connect($host, $user, $pass, $database) or die('cant connect'); | |
mysqli_query($connection, "SET NAMES 'utf8'"); // importance ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment