<?php

include $_SERVER['DOCUMENT_ROOT'] . '/classes/autoload.php';


@$res = $db->query("default_links", "INSERT INTO `default_links`(`parent_table_name`, `parent_table_column`, `child_table_name`, `pull_column_name`,`function` ,`display_method` ,`icon`,`onclick` ,`onclick_file` ,`send_column` ,`custom_header` ,`custom_text`) VALUES ('" . $_POST['parent_table_name'] . "','" . $_POST['parent_table_column'] . "','" . $_POST['child_table_name'] . "','" . $_POST['pull_column_name'] . "','" . $_POST['function'] . "','" . $_POST['display_method'] . "','" . $_POST['icon'] . "','" . $_POST['onclick'] . "','" . $_POST['onclick_file'] . "','" . $_POST['send_column'] . "','" . $_POST['custom_header'] . "','" . $_POST['custom_text'] . "')");
if ($res > 1) {
    header("location:home.php");
}