<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<?php
include("connect.php");
$sl="select * from webnhac_casi";
$kq=mysqli_query($link,$sl);
?>
<ul>
<?php
while($d=mysqli_fetch_array($kq))
{
?>
<li><?php echo $d['HoTenCS']; ?></li>
<?php } ?>
</ul>
</body>
</html>
//connect.php
<?php
$link=@mysqli_connect("localhost","root","") or die("Không tìm thấy Sever");
mysqli_select_db($link,"webtintuc") or die("Không tìm thấy DB");
?>
0 comments:
Post a Comment