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.

(MySql) Getting $1 where there should be text

Discussion in 'MySQL' started by jawinn, Oct 31, 2006.

  1. #1
    I'm dumping form data to a DB. I just noticed that instead of the text from a drop down box (in the form) in the DB field I have $1. I've never seen this before. Am I missing something basic in my form processor?

    thx,
    SEMrush
     
    jawinn, Oct 31, 2006 IP
    SEMrush
  2. MarkB

    MarkB Peon

    Messages:
    33
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    We'll need to see the code you're using before we can help :)
     
    MarkB, Oct 31, 2006 IP
    jawinn likes this.
  3. jawinn

    jawinn Active Member

    Messages:
    1,024
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    88
    #3
    I just realized that I needed to do a better job of debugging :eek:

    Thanks anyway,
    J
     
    jawinn, Oct 31, 2006 IP
  4. JEET

    JEET Notable Member

    Messages:
    2,625
    Likes Received:
    188
    Best Answers:
    4
    Trophy Points:
    215
    #4
    I think you are missing an "echo", or using :
    echo '<option value="$1">$1</option>';

    Instead use:
    echo '<option value="'.$1.'">'.$1.'</option>';
    and it should work.
    Bye :)
     
    JEET, Oct 31, 2006 IP