Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
data-networks-web
lab-exercises
Commits
e2465685
Commit
e2465685
authored
Jun 08, 2017
by
Sorrel Harriet
Browse files
updated home view
parent
50a621c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
resit-app/hangman/views/home.php
View file @
e2465685
...
...
@@ -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>"
;
}
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment