file php của mình
<html lang="en"> <!--<![endif]-->
<head>
<meta charset="UTF-8">
</head>
<body>
<?php
$servername = "localhost";
$username = "ddlmediaf_droid";
$password = "123456789kk";
$dbname = "ddlmediaf_droid";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
mysql_set_charset('UTF8',$conn);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * FROM thongtin";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "<br> id: ". $row["id"]. " - Name: ". $row["tieude"]. " " . $row["des"] . "<br>";
}
} else {
echo "0 results";
}
$conn->close();
?>
</body>
</html>