(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,
     
    jawinn, Oct 31, 2006 IP
  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:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #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