Commit e2465685 authored by Sorrel Harriet's avatar Sorrel Harriet
Browse files

updated home view

parent 50a621c9
......@@ -31,6 +31,7 @@ if ($row_cnt == 0) {
// otherwise set a variable with their name
while ($row = mysqli_fetch_assoc($result)) {
$forename = $row['forename'];
$username = $row['username'];
}
// free result set
......@@ -39,6 +40,7 @@ if ($row_cnt == 0) {
// update content
$content .= "<h1>Welcome to Hang Man $forename!</h1>";
$content .= "<p>An exciting word game for 1 player.</p>";
$content .= "<p>You are playing as <strong>$username</strong></p>";
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment