1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Rep Power

    How to log values from the search field

    i am new to both mysql and php and on this forum.

    I have a database and i want to log values that users put in the search field.

    Can you help me with that, and what should i do to make it possible.

    Thank you.
  2. #2
  3. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Pennsylvania, USA
    Rep Power
    The only help you're likely to get with such a vague question is "use PHP." Do you know where your search page is? Can you see its source code? Do you see where it processes the incoming search string and uses it to perform the search? Right in there, do an insert into a new table you create for logging the search terms.
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.

IMN logo majestic logo threadwatch logo seochat tools logo