MySqlDataReader myDataReader; myDataReader = myCommand.ExecuteReader(); myDataReader.Read(); if (myDataReader.HasRows) { while (myDataReader.Read()) {
MySqlConnection scon = new MySqlConnection(System.Configuration.ConfigurationManager.AppSettings["ConnectionString"]); scon.Open(); string amenity = "insert into table(hotelid,amenitieid) values ('12','24')"; MySqlCommand cmd = new MySqlCommand(amenity, scon); scon.close(); } } msql.close();
if (myDataReader.HasRows) { while (myDataReader.Read()) {<
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)