示例#1
0
function queryUpdateTableRelation($param)
{
    queryDeleteTableRelation($param);
    // Delete the previous relationship
    queryDefineTableRelation($param);
    // Define the "updated" relationship (really a new one since we deleted the old)
}
示例#2
0
                $arr_chosen_fields = explode(',', $Child_Field_Subtext);
                //--see if all chosen fields exist in the retreived parent fields
                foreach ($arr_chosen_fields as $subtext) {
                    $subtext = trim($subtext);
                    if (in_array($subtext, $arr_fields)) {
                        //found, valid
                    } else {
                        $errMsg .= 'Invalid child field subtext: ' . $subtext . '<br/>';
                    }
                }
            }
        } else {
            $Child_Field_Subtext = '';
        }
        if ($errMsg == "") {
            queryDefineTableRelation($_POST);
            header("location: ../success.php?success_tag=DefineTableRelations");
            exit;
        }
    }
}
drawHeader();
drawPageTitle('Define Relationship', $errMsg);
?>
<div class="container_mid_huge">
<fieldset class="top">
New Relationship
</fieldset>

<fieldset class="middle">
<table class="input_form">