Newer
Older
<style>
table {
width: 50%;
border-collapse: collapse;
}
th, td {
border: 1px solid black;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
</style>
//<?php
$servername = "db";
$username = "demo";
$password = "Noon+020347";
//Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
echo "id: " . $row["id"]. " - Name: " . $row["fname"]. " " . $row["lname"]. "<br>";