I have a HTML form which have only "value" text field.But user can generate any number of "value" test field for 1 submit button. Here is my table
CREATE TABLE IF NOT EXISTS `insert` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`insert_operation` int(11) NOT NULL,
`value` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
Now if user generates 4 "value" text field and enter 4 value data like(a,b,c,d) it should perform 4 insert query but insert_operation track of every submit button click.
It'll look like below
Id Insert_operation value 1 1 a 2 1 b 3 1 c 4 1 d 5 2 x 6 2 a
my html form has value text field which name is value and submit button which name is save.
I am not sure of my php code. I know the Insert query must be inside PHP loop. But how can I perform?