Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

quick sql problem

DevelopmentDevelopment Member Posts: 222
ok can anyone show me how to add data to a sql server?

[code]
MyDB1.QueryOne('INSERT INTO ALS_signup VALUES (username = '''+LabeledEdit1.Text+''' WHERE username = '''+LabeledEdit1.Text+'''');
[/code]

can anyone help plzzzz
Slewis

Comments

  • theodore.mtheodore.m Member Posts: 1
    : ok can anyone show me how to add data to a sql server?
    :
    : [code]
    : MyDB1.QueryOne('INSERT INTO ALS_signup VALUES (username = '''+LabeledEdit1.Text+''' WHERE username = '''+LabeledEdit1.Text+'''');
    : [/code]
    :
    : can anyone help plzzzz
    : Slewis
    :

    If I understood your question correctly, you want to insert a user's name into the 'username' field of your db, like this:
    [code]
    [blue]
    MyDB1.QueryOne('
    INSERT INTO ALS_signup (username)
    VALUES (' + QuotedStr(LabeledEdit1.Text));
    [/code]
    [/blue]
Sign In or Register to comment.