This topic is locked
[SOLVED]

 How to update data filed through grid button?

7/16/2013 3:53:32 PM
PHPRunner General questions
T
Tayyab Ilyas author

Hi
On list page i have added a grid button, i want to change one file value of that data row in database through button.
Eg. I have field in database called confirm, now i want user to click button and the place yes in database through that button.
Can anyone guide how can i achieve this.
Thanks in advance.

T
Tayyab Ilyas author 7/16/2013

Thanks all,
I figured out. below is for others support
In server tab i used following code:


$sql = "update TABLE_NAME set FIELD_NAME='No(what ever new value)' where ID_Field=" .$keys["ID_Field"];

CustomQuery($sql);