Looking for someone with PHP Knowledge

Discussion in 'Programming' started by Rian, Jan 16, 2010.

  1. #1
    Hi Guys

    I am looking for someone with php knowledge who can help me with a quick job.

    I have a membership website, which works fine when members log into the site.

    I have a few local databases members can search.

    I am logging all activities when members search my databases, but I need help from someone who can assist me with the following problem:

    I need the username, when members log into my website, to be logged along with the searches they conduct. Currently members must manually enter their username when conducting a search, which I dont want anymore.

    I will pay $10 to someone who can help me with this.
     
    Rian, Jan 16, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    On search submit do something like:

    if(isset($_POST['submit'])) {
    $search = $_POST['search'];
    $user = $_SESSION['username'];
    
    //e.g. user_search is the table
    mysql_query("INSERT into user_searches SET search= '$search' WHERE username='$user'");
    }
    
    PHP:
     
    danx10, Jan 16, 2010 IP
  3. Rian

    Rian Well-Known Member

    Messages:
    1,763
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    125
    As Seller:
    100% - 0
    As Buyer:
    100% - 5
    #3
    Thanks everyone, I found someone who fixed my site!
     
    Rian, Jan 16, 2010 IP