Created
June 4, 2018 13:17
-
-
Save gianghl1983/43118fd28b066205c02509e3257a6203 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 | |
$server = 'localhost'; | |
$username = 'giang2424_demo'; | |
$password = '05012011'; | |
$database = "giang2424_quanlythuchi"; | |
$db_qltc = new mysqli($server, $username, $password, $database);//Thay tên $db_qltc | |
$db_qltc->set_charset('utf8'); | |
if ($db_qltc->connect_error) { | |
echo "<br>Lỗi kết nối"; | |
} else { | |
//cho "Kết nối thành công!"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment