[Ask] Show Data From Database With Condition

Hi Yii-ers,

I want to ask, how to show data from database with condition, and show it with checkboxlist format?

This is my table :

Id_User Id_Tools Return_Date

1 | 1 | Null

1 | 2 | Null

1 | 3 | Null

I want to make, the checkboxlist will show Id_Tools with the Return_Date value "Null" based on Id_User we selected.

If we check the Item, the Date will fill with this date.

Need Your Help, Thank you

I believe you can use Handling multiple models with a single form. I’ve used it with a series of radio-buttons to select values for different entries of a table.