The following files exists in this folder. Click to view.
add-words.php
api/
components/
include.php
index.php
ini/
login.php
logout.php
practice.php
progress.php
public/
scripts/
util/
word.php
index.php
27 lines ASCII Windows (CRLF)
<?php
include "include.php";
$result = $db->query("SELECT * FROM word");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include "components/head.php" ?>
</head>
<body>
<?php include "components/header.php"; ?>
<main>
<div class="flex w-50">
<?php
foreach ($result as $wordObj) { ?>
<a href="word.php?id=<?php echo $wordObj["id"] ?>"><?php echo $wordObj["word"] ?></a>
<?php } ?>
</div>
</main>
</body>
</html>