How do I edit the three div's using CSS so that the result will be a table like the following picture (but in a better way. I created that table using Microsoft Word)
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "hangman";
try {
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("SELECT * FROM `credits`");
$stmt->execute();
$result = $stmt->fetch(PDO::FETCH_ASSOC);
echo "<div>Created By: ".$result["author_name"]."<br></div>";
echo "<div>Contact: ".$result["author_email"]."<br></div>";
echo "<div>Description: ".$result["description"]."</div>";
}
catch(PDOException $e) {
echo "Error: " . $e->getMessage();
}
$conn = null;
?>
