Dear all, Can you help me with the following or point me to the right direction;
I'm receiving value's of two fields called test1 and test2. Both fields can have multivalue's. The first field called test1 is going o.k. with the following code; if(is_array($_POST['test1'])) { foreach($_POST['test1'] as $Key => $Value) { $query = "INSERT INTO testx(name) values ('$Value')"; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); } else { $query = "INSERT INTO testx(name) values ('$test1')"; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); } } How can i put the test2 value's in the above construction so that the value's of test1 and test2 are seamlessley written in the database? Thanks in advance for helping me out! Regards, Frank