Please help if possible. The following code as of now produces the text on three separate lines, like this:
My Account
Edit Account
Logout
However, I would like to display in the following manner instead:
My Account Edit Account Logout
I would like to link the page to a style sheet and insert a div tag which will also have some other value such as color and etc.. of the hyperlinks. I guess my question is then:
How is it possible to insert a div tag and <ul> tag the PHP code below so that I have an unordered list which I could later modify in CSS? Please provide a working example if possible, thank you.
<?php
/**
* User has already logged in, so display relavent links, including
* a link to the admin center if the user is an administrator.
*/
if($session->logged_in){
echo "<a href=\"userinfo.php?user=$session->username\">My Account</a>"
."<a href=\"useredit.php\">Edit Account</a>";
if($session->isAdmin()){
echo "<a href=\"admin/admin.php\">Admin Center</a>";
}
echo "<a href=\"process.php\">Logout</a>";
}
else{
?>