Inserting Multiple Columns At The Same Time With Single Click

Collecting Multiple values for multiple multiple insertion in a single table… suggest your ideas… ex a form have similar types of columns.

Hi Ahamed,

Columns? You mean rows(records)?

yes… it is an order form here my client order various goods… how to do this… I hav no idea.

Hi

i think you may something look like this


if (isset($_POST['music_name'])) {

                $value = $_POST['music_name'];

                foreach ($value as $data) {

                    $vendor_venue_music = new VenueEventMusic();

                    $vendor_venue_music->rk_vendor_id = $vendor_id->id;

                    $vendor_venue_music->rk_venue_id = $_REQUEST['vid'];

                    $vendor_venue_music->rk_venue_event_id = $event->id;

                    $vendor_venue_music->rk_venue_music_id = $data;

                    $vendor_venue_music->save(false);

                }

            }

no this is not I want…

Is this what you want?

http://www.yiiframework.com/doc/guide/1.1/en/form.table

it does not works as expected

It doesn’t tell us much about your issue.