Skip to content

Instantly share code, notes, and snippets.

@gianghl1983

gianghl1983/connect

Created Jun 4, 2018
Embed
What would you like to do?
<?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