public void DisplayEvent() { MySqlConnection conn = new MySqlConnection(connString); conn.Open(); String sql = "SELECT * FROM db_booking WHERE dateFrom = ?"; MySqlCommand cmd = conn.CreateCommand(); cmd.CommandText = sql; cmd.Parameters.AddWithValue("dateFrom", lblevent.Text); MySqlDataReader reader = cmd.ExecuteReader(); if (reader.Read()) { lblevent.Text = reader["customerID"].ToString(); } reader.Dispose(); cmd.Dispose(); conn.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)