Skip to content

Instantly share code, notes, and snippets.

@Trshant
Last active July 4, 2018 11:25
Show Gist options
  • Save Trshant/0f53371f609e4a62e7aa3136b462c5ac to your computer and use it in GitHub Desktop.
Save Trshant/0f53371f609e4a62e7aa3136b462c5ac to your computer and use it in GitHub Desktop.
<?php
foreach($_POST['outcome'] as $okey=>$oval){
$rs = mysql_query("INSERT INTO form_quest_outcome_fqo (qid_fqo, idotc_fqo) VALUES ('{$q_id}','{$oval}')", $mx_shop);
$idfqo = mysql_insert_id();
foreach($_POST['outcome_inctype'][$oval] as $ikey=>$ival){
mysql_query("INSERT INTO form_quest_outcomeit_fqi (idfqo_fqi, qid_fqi, idit_fqi) VALUES ('{$idfqo}','{$q_id}','{$ival}')", $mx_shop);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment