Results 1 to 2 of 2

Thread: Write inputs to SQL/ODBC

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2007
    Posts
    1

    Cool Write inputs to SQL/ODBC

    Not sure if there is an easy answer but ill see if i can word the question correctly and hopefully i will get the answer i need.

    I am designing a simple application (1 window) to write data to a RSS feed ... stored in a MySQL database.

    The page consists of 3 boxes

    Title
    Content
    Date

    ID is generated automaticly by the SQL server upon insert.

    I have a submit button on the page...

    currently the code i have is

    Code Snippet
    Code:
            private void button1_Click(object sender, EventArgs e)
            {
             
            }
    This is as far as my knowledge goes...

    I wish to simply post (php programmer sorry) the 3 boxes to the SQL server for saving, I have created a DSN to connect to the database but I have no idea how useful that actually is as i have no clue how to write the data to the database.

    I would assume that when I click the submit button the code within the { }'s is executed to save the data to the database... what do I put in the { }'s to make this all work... once this works I will prob arrange to start making a sql viewer/editor and increate its editing potential but to start with i just want it saving to the database....

    Nice (simple) one for you.
    Name:  sample program.jpg
Views: 98
Size:  15.0 KB
    Thanks

    Keith

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Write inputs to SQL/ODBC

    If you take a look at the MySQL website you'll find "MySQL.VisualStudio" add-in so you can easily use MySQL from VS

    I also recommend reading some books or going through some tutorials to help you learn C# as I understand you are new to this.

    We here would love to help you with your problems but as long as you're not asking us to do your stuff

    Cheers, and Welcome to the .NET hell
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width