Tuesday, 14 December 2021

connect.php

 <?php

//Kết nối đến server DB:
	$link=@mysqli_connect("localhost","root","") or die("Không thể kết nối đến Server!");
	//Chọn database cần thao tác:
	mysqli_select_db($link,"webtintuc") or die("Không tồn tại DB này!");
	mysqli_query($link,"set names 'utf8'");
?>

0 comments:

Post a Comment