Currently I am getting the values from a form individually and then posting them to the db on submission. The code I have below works fine
$output['success'] = $wpdb->insert('my_Tablename', array(
'one' => $one,
'two' => $two,
'three' => $three,
'four' => $four,
'five' => $five
));
but what if I want to post some fields to a supplemental table at the same time? How would I do that? Its not $output2
as I tried that, and I cant add a comma between the $wpbd inserts, so what would the solution be? I want to add:
$output['success'] = $wpdb->insert('my_Tablename_two', array(
'one' => $one,
'two' => $two,
'three' => $three,
'four' => $four,
'five' => $five
));