Ver original$insert ="insert into temporal values(";for ($c=0; $c < $num1; $c++ ) {$insert_array[] = "'".$data1["campo$c"]."'";}$insert .= implode("," , $insert_array);$insert .= ");";