Jump to content

Search the Community

Showing results for tags 'login yser profile display'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. Hi , please be noted that i need help with php fetshing logged user s data and displaying all the data regarding the logged user below is explanation of what happens and the code im using -so i was able to write a code that authenticare registered users , for example when i log with let say a username "steve" i direct user to profile page wich says welcome steve and in the same page i put for test a link that says "see my profile" when i click on that link "see my profile" it shows me "Welcome SELECT * FROM users WHERE username =steve. Click here to" im pretty sur that this has to do with this line of code: Welcome <?php echo "SELECT * FROM users WHERE username =".$_SESSION["username"] ; ?> please refer to code below to locate the line that is giving me the wrong output Note : i ve been digging on that in google and im sur that line should give the info of the logged user please help me with this matter and of you need more info let me know thanks in advace ----------------------------------------------------- code----------------------- <?php session_start(); ?> <html> <head> <title>User Login</title> <link rel="stylesheet" type="text/css" href="styles.css" /> </head> <body> <table border="0" cellpadding="10" cellspacing="1" width="500" align="center"> <tr class="tableheader"> <td align="center">User Dashboard</td> </tr> <tr class="tablerow"> <td> <?php if($_SESSION["username"]) { ?> Welcome <?php echo "SELECT * FROM users WHERE username =".$_SESSION["username"] ; ?>. Click here to <a href="logout.php" tite="Logout">Logout.<br /> <a href="profile.php" tite="profile"> see my profile <?php } ?> </td> </tr> </body></html>
×
×
  • Create New...