text fields

Discussion in 'Databases' started by xamd404, Feb 20, 2011.

  1. #1
    Helo,

    I am trying to send 2 values from a form textfield into one SQL table field.

    So in the text field i insert A and B and both are sent to the field as different values.

    If this is not possible I would love to know a better way of doing it :S

    Thank you
     
    xamd404, Feb 20, 2011 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    So are you wanting to insert two rows, one with each value or are you wanting it going into a single row? If it is a single row then do you want a space or any other character inserted between the fields values?
     
    AstarothSolutions, Feb 20, 2011 IP
  3. xamd404

    xamd404 Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes I would like a character inserted between the fields values and also between the form textfield though that isn't important.

    Row? I mean like i have a DB table:

    letter 1, letter 2,

    The first value in the column letter 1 field is A, in the other field letter 2 Iput in B

    So it's something like:

    letter1: A
    letter2: B



    What i want to do is have it so I can store 2 values in one column, no idea if this is possible though. So it would look something like:
    letter1: A
    letter2: B C

    I want B and C to be treated differently but with the same categorization.
     
    xamd404, Feb 21, 2011 IP