3
Contributors
5
Replies
13
Views
4 Years
Discussion Span
Last Post by fhau013
0

I see nothing to help if there is no code. I don't know the error unless the error is "pls help". The only way we help with these kind of things is if there's code, where not here to guess.

0

There's an error in your query. Post your code, the offending query is not visible in the image.

Edited by pritaeas

0
string constring = "server=localhost;port=3306;username=root;password=admin;database=point_of_sales";
            MySqlConnection condatadase = new MySqlConnection(constring);
            MySqlCommand cmddatabase = new MySqlCommand("SELECT * FROM productstbl WHERE product_description LIKE " + txtproductname.Text, condatadase);
;



            MySqlDataAdapter sda = new MySqlDataAdapter();
            sda.SelectCommand = cmddatabase;
            DataTable dbdataset = new DataTable();
            sda.Fill(dbdataset);
            BindingSource bsource = new BindingSource();

            bsource.DataSource = dbdataset;
            datagriditems.DataSource = bsource;
            sda.Update(dbdataset);
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.