Hi everybody. I've downloaded a members area script, and I don't know how to put some pictures when the users has logged in ... the code where I should tweak something is this if($session->logged_in){ echo "<h1>Logged In</h1>"; echo "Welcome <b>$session->username</b>, you are logged in. <br><br>" ."[<a href=\"userinfo.php?user=$session->username\">My Account</a>] " ---------> I NEED TO INSERT SOME IMAGES HERE, HOW CAN I DO THAT <-------------- ."[<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{ Code (markup): help me ... please
Try this : if($session->logged_in){ echo "<h1>Logged In</h1>"; echo "Welcome <b>$session->username</b>, you are logged in. <br><br>" ."[<a href=\"userinfo.php?user=$session->username\">My Account</a>] " ."<img src=\"path/to/image.jpg\" >" ."[<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{ PHP:
aplus ... it worked ... thanks BUT now I want to link the image, to open the full size in a new window !! how to that ... just like HTML ? thanks in advance
Can you not derive what you have to do from the rest of the code and from what has been posted here? That is sad.
Nope ... so please stop posting, just for fun ... your posts are no usefull for this topic .... please understand
If you think you know, then test it to see if it works. if you really want to learn, then you will need to test.
NYDAz: regarding your question... "how to that ... just like HTML ?" Remember: PHP is a server side language that outputs HTML. Things like that ("how to make a link" etc.) HAVE to be like HTML, because the output of PHP HAS to be HTML (in instances where you want it to show in a browser). Just thought I would clarify that for you.