Jump to content

oscar123

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

oscar123's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks so much - fantastic - it works! [!--quoteo(post=370536:date=May 2 2006, 07:58 AM:name=bbaker)--][div class=\'quotetop\']QUOTE(bbaker @ May 2 2006, 07:58 AM) [snapback]370536[/snapback][/div][div class=\'quotemain\'][!--quotec--] you have to set the $username variable: $username = $_SESSION['username']; [/quote]
  2. How do I filter results from a database based on which user is logged into the site? I have got the session function working fine with basic user level matching but now want to run queries which check the Session Username with the 'employer' field in the cvs database. When they match I want them to be ommitted from the result. "SELECT * FROM cvs WHERE employer != '$username'"; Is there another way of doing this? Maybe 'if' statements? Please help - its driving me nuts!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.