Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi everyone,

I am creating a application where I have a datagrid showing orders for a business. I am attempting to write code where,when a user selects a row/order and then clicks a button, the status of the order will be updated changed to delivered. I am unsure how to go about doing this-how do I specify the row in datagrid to send in my query to my MYSQL database? Any advice you can give me on this matter would be appreciated.



Many Thanks!
Posted

1 solution

In your datagrid keep a column called delivered which is a item template column with check box. If the user check the check box, use javascript to make a submit button click. The button should be hidden. In the isset($_POS['hiddenbutton']) write your status update query.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900