Following is the code -
public string _advis
{
set { string ad1 = value; }
}
MySqlCommand com1 = new MySqlCommand("Select ID from swapnali.login where Advisor_Name='"_advis "'", conn);
How to pass value of _advis to mysql query. Here I have passed _advis, but it is giving error.
Thanks
VulpesPosted May 14, 2013, 1:49 PM
swami swamiPosted May 14, 2013, 1:54 PM
swami swamiPosted May 14, 2013, 1:54 PM
swami swamiPosted May 14, 2013, 1:50 PM
swami swamiPosted May 14, 2013, 1:46 PM
Javeed M ShaikhPosted May 14, 2013, 1:40 PM
MySqlCommand com1 = new MySqlCommand("Select ID from swapnali.login where Advisor_Name='" + yourstringvalue + "'", conn);
VulpesPosted May 14, 2013, 1:40 PM