09-10-2012, 02:26 PM
After you execute the query you should get an result. According to that result where you have to parse that result:
MySqlDataReader myReader = insertBann.ExecuteReader();
try{
//reading rows if the result are multiple rows
while(myReader.Read()){
//if for every column you could use myReader.GetInt32(0), myReader.GetString(0),
//where 0 is the column number(0 first column, 1 second column,...)
int i =myReader.GetInt32(0);
}
}finally{
myReader.close();
connection.close();
}

