When creating a project, you must select multiple checkboxes. now it is basically a dynamic language. for example, after the selected technology is submitted, the database will be inserted (traversal and insertion), which is no problem, the problem is that we need to select multiple boxes during editing and the options submitted last time are selected. this is a bit difficult, because it is a two-long table and multiple data entries are inserted, finally, I got it done. the code is not very nice-looking action.
When creating a project, you must select multiple checkboxes. now it is basically a dynamic language. for example, after the selected technology is submitted, the database will be inserted (traversal and insertion), which is no problem, the problem is that we need to select multiple boxes during editing and the options submitted last time are selected. this is a bit difficult, because it is a two-long table and multiple data entries are inserted, finally, I got it done. the code does not look good at the action page:
$ Jis = $ jishu-> order ('px asc ')-> select (); // technical table, all technical categories
$ Xuanzhong = $ fp-> where ('anliid = "'. $ _ GET ['id']. '"')-> order ('Id asc ')-> select (); // The selected table
$ This-> assign ('zs', $ xuanzhong );
$ This-> assign ('jis ', $ jis); // assign a value for rendering.
View Code: foreach judgment written by volist of mixed editing and tp
{$ Vo. name} >
K]
Well, that's exactly what it looks like.