php - How to add more than one field in row, instead each field in row -
i'm use grocery crud
codeignier
, want add 2 image upload fields or more 1 form row.
usually way add fields in following figure:
but want following figure (all in 1 row):
the code:
$crud = new grocery_crud(); $crud->set_table('content'); $crud->where('state', 1); $crud->add_fields('name', 'category_id', 'subcategory_id', 'image', 'image2', 'image3', 'image4', 'text', 'period'); $crud->set_field_upload('image', 'assets/uploads/'); $crud->set_field_upload('image2', 'assets/uploads/'); $crud->set_field_upload('image3', 'assets/uploads/'); $crud->set_field_upload('image4', 'assets/uploads/');
Comments
Post a Comment