survey_seahorse

Software Engineering Project - Fall 2018
Log | Files | Refs | README

commit 9596edd87e58c7a6df6dd2c2c7501a061a7c96ae
parent 42aadf0d05cdf572ae1efa471b2b36402c54dddd
Author: David Liotta <liottad6@students.rowan.edu>
Date:   Fri, 14 Dec 2018 20:38:25 -0500

Navbar update
Diffstat:
Mwebsite/index.php | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/website/index.php b/website/index.php @@ -9,6 +9,7 @@ $q = mysqli_fetch_assoc($result); $sql = "select * from user order by registration_date desc limit 1;"; $result = mysqli_query($connect, $sql) or die(mysqli_error($connect)); $newUser = mysqli_fetch_assoc($result); +$user = $_SESSION['username']; ?> <head> <title>Survey Seahorse</title> @@ -25,10 +26,11 @@ $newUser = mysqli_fetch_assoc($result); <link rel = "stylesheet" href= "res/nav.css" /> <div class= nav> <a href="index.php" target="_blank"> Home </a> + <a href="profile.php" target="_blank"> <?php echo $user; ?>'s Profile </a> <a href="directory.php" target="_blank"> Surveys </a> - <a href="profile.php" target="_blank"> My Profile </a> + <a href="createsurvey.php" target="_blank"> Create a Survey </a> </div> -<br> +<br><br> <h1> Survey Seahorse </h1> <h3> Random Question: <?php echo $q['question_content']; ?> </h3>