1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

sql help

Discussion in 'HTML & Website Design' started by Gnome, Feb 2, 2008.

  1. #1
    Hi,

    I have a table in a database which has 2 fields, userid and impressions

    what I want to do is specify the userid and read the impressions for that userid

    what query would i use? thanks
     
    Gnome, Feb 2, 2008 IP
  2. Valve-Hosting

    Valve-Hosting Peon

    Messages:
    1,071
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Valve-Hosting, Feb 2, 2008 IP
  3. Gnome

    Gnome Active Member

    Messages:
    236
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #3
    oops didnt no
     
    Gnome, Feb 2, 2008 IP
  4. Valve-Hosting

    Valve-Hosting Peon

    Messages:
    1,071
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It happens ;) Doesn't bother me where you post, I just wanted to show you where to get the help you need.:)
     
    Valve-Hosting, Feb 2, 2008 IP
  5. nicangeli

    nicangeli Peon

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well i am sure that this will be moved soon so you should geta better resonse, but i would suggest something like;

    
    "SELECT impressions FROM tablename WHERE userid = '1'"
    
    Code (markup):
     
    nicangeli, Feb 2, 2008 IP