|
-
Aug 21st, 2007, 06:25 PM
#1
Thread Starter
New Member
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.

Thanks
Keith
-
Aug 22nd, 2007, 04:00 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|