Click here to Skip to main content
15,913,944 members
Home / Discussions / C#
   

C#

 
QuestionDataGridView Selected Just one Cell on rows Pin
mohammadcom16-Jun-08 1:01
mohammadcom16-Jun-08 1:01 
QuestionDPI and Scale Problem Pin
Ahmad Safwat16-Jun-08 0:12
Ahmad Safwat16-Jun-08 0:12 
QuestionOn choosing the apt datastructure Pin
Member 475670915-Jun-08 22:59
Member 475670915-Jun-08 22:59 
QuestionRe: On choosing the apt datastructure Pin
sunspeed15-Jun-08 23:21
sunspeed15-Jun-08 23:21 
Questionserialize a window control Pin
Elesh15-Jun-08 22:40
Elesh15-Jun-08 22:40 
AnswerRe: serialize a window control Pin
Guffa16-Jun-08 1:26
Guffa16-Jun-08 1:26 
AnswerRe: serialize a window control Pin
Simon P Stevens16-Jun-08 1:29
Simon P Stevens16-Jun-08 1:29 
QuestionC# and MySql Qeury not running Pin
bdiepeveen15-Jun-08 21:43
bdiepeveen15-Jun-08 21:43 
I've been working on an programe wich uses MySql 5,
The programe runs an MySql to reads the data from the database and also an seperate sql to add new data to the DB,
Tough for some reason the Sql for adding is not working proply, It wont add any data and it doesn't disaply an error message. And yes i have acces because i can read data in the DB,

Here's is my Sql code:
string query = "INSERT INTO gebruikers (klantnr, voornaam, tussenvoegsel, achternaam, wachtwoord, adres, email, actcode, status, pcpw, land, telefoon , betalingskeuze, betalingsmethode) VALUES  ('" + txtVoorNaam.Text + "', '" + txtTussenVoegsel.Text + "', '" + txtAchterNaam.Text + "','" + txtPW.Text + "','" + txtAdres.Text + "','" + txtEmail.Text + "','" + txtActCode.Text + "','" + cmbStatus.Text + "','" + txtPcWp.Text + "','" + cmbLand.Text + "','" + txtTel.Text + "','" + cmbBetaalKeuze.Text + "','" + cmbBetaalMethode.Text + "')";
MySql.Data.MySqlClient.MySqlCommand bQuery = new MySql.Data.MySqlClient.MySqlCommand(query, connection);


I also have another form wich has similair content and there the Sql runs with out problem.
There the code looks as follows
string query = "INSERT INTO bestelregel (productnummer, aantal_besteld, bestelnummer, user, datum, produktnaam, nieuw) VALUES  ('" + txtProductNr.Text + "', '" + txtAantalBesteld.Text + "', '" + txtBestelNr.Text + "','" + txtUser.Text + "','" + dtpDatum.Text + "','" + txtProduktNaam.Text + "','" + cmbNieuw.SelectedItem + "')";
MySql.Data.MySqlClient.MySqlCommand bQuery = new MySql.Data.MySqlClient.MySqlCommand(query, connection);


My Question is what i'm i doing wrong with the "gebruikers" table?
Cause i cannot find it D'Oh! | :doh:

Thanks in adavance for any help or suggestions
AnswerRe: C# and MySql Qeury not running Pin
Giorgi Dalakishvili15-Jun-08 21:53
mentorGiorgi Dalakishvili15-Jun-08 21:53 
AnswerRe: C# and MySql Qeury not running Pin
Guffa15-Jun-08 22:26
Guffa15-Jun-08 22:26 
QuestionString manipulation Pin
steve_rm15-Jun-08 21:35
steve_rm15-Jun-08 21:35 
AnswerRe: String manipulation Pin
Giorgi Dalakishvili15-Jun-08 21:48
mentorGiorgi Dalakishvili15-Jun-08 21:48 
AnswerRe: String manipulation Pin
Nouman Bhatti15-Jun-08 23:18
Nouman Bhatti15-Jun-08 23:18 
AnswerRe: String manipulation Pin
User 665815-Jun-08 23:45
User 665815-Jun-08 23:45 
QuestionControl date in text box Pin
nasma15-Jun-08 21:26
nasma15-Jun-08 21:26 
AnswerRe: Control date in text box Pin
Ravi Bhavnani15-Jun-08 21:30
professionalRavi Bhavnani15-Jun-08 21:30 
QuestionRe: Control date in text box Pin
nasma16-Jun-08 1:06
nasma16-Jun-08 1:06 
AnswerRe: Control date in text box Pin
Ashfield16-Jun-08 1:22
Ashfield16-Jun-08 1:22 
AnswerRe: Control date in text box Pin
DaveyM6916-Jun-08 2:04
professionalDaveyM6916-Jun-08 2:04 
AnswerRe: Control date in text box Pin
Ravi Bhavnani16-Jun-08 4:59
professionalRavi Bhavnani16-Jun-08 4:59 
AnswerRe: Control date in text box Pin
PIEBALDconsult16-Jun-08 5:46
mvePIEBALDconsult16-Jun-08 5:46 
GeneralRe: Control date in text box Pin
DaveyM6916-Jun-08 12:04
professionalDaveyM6916-Jun-08 12:04 
GeneralRe: Control date in text box Pin
PIEBALDconsult16-Jun-08 12:24
mvePIEBALDconsult16-Jun-08 12:24 
AnswerRe: Control date in text box Pin
nasma16-Jun-08 7:06
nasma16-Jun-08 7:06 
QuestionConvert to hex Pin
Susanmat15-Jun-08 21:21
Susanmat15-Jun-08 21:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.