TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
swami swami
NA
29
5.1k
pass value to query
May 14 2013 1:24 PM
How to pass value of string to a query?
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
Reply
Answers (
7
)
Sites for selling applications
Add items to list