I have table student
student(id,name,status)
status[1,2,3,4]
Help show data
1 <=> waitting
2 <=> Process
3 <=> Open
4 <=> closed
3 Answers
You can use dropdown field for status, that will show the labels and will post the integer to database.
$col["edittype"] = "select";
$col["editoptions"] = array("value"=>'1:Waiting;2:Process;3:Open;4:Closed');
Refer demos/appearance/dropdown.php and replace the
$col["editoptions"] wih above to see the working.
Your Answer