show Data

Questionsshow Data
BuiDuongThe asked 9 years ago

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
Abu Ghufran answered 9 years ago

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');

Abu Ghufran answered 9 years ago

Refer demos/appearance/dropdown.php and replace the
$col["editoptions"] wih above to see the working.

BuiDuongThe answered 9 years ago

dear Abu Ghufran
Step Edit here
{
$col["edittype"] = "select";
$col["editoptions"] = array("value"=>'1:Waiting;2:Process;3:Open;4:Closed');
}

I want step view, thanks

Your Answer

18 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?