Action = "update"; $UpdateQuery->Table = "`component_family`"; $UpdateQuery->bindColumn("idcomponentfamily", "s", "" . ((isset($_POST["idcomponentfamily"])) ? $_POST["idcomponentfamily"] : "") . "", "WA_DEFAULT"); $UpdateQuery->bindColumn("name_componentfamily", "s", "" . ((isset($_POST["name_componentfamily"])) ? $_POST["name_componentfamily"] : "") . "", "WA_DEFAULT"); $UpdateQuery->bindColumn("description_componentfamily", "s", "" . ((isset($_POST["description_componentfamily"])) ? $_POST["description_componentfamily"] : "") . "", "WA_DEFAULT"); $UpdateQuery->bindColumn("component_family_type", "s", "" . ((isset($_POST["laboratory_componentfamily"])) ? $_POST["laboratory_componentfamily"] : "") . "", "WA_DEFAULT"); $UpdateQuery->bindColumn("company_id", "s", "" . ((isset($_POST["company_id"])) ? $_POST["company_id"] : "") . "", "WA_DEFAULT"); $UpdateQuery->bindColumn("created_at", "s", "" . ((isset($_POST["created_at"])) ? $_POST["created_at"] : "") . "", "WA_DEFAULT"); $UpdateQuery->bindColumn("updated_at", "s", "" . ((isset($_POST["updated_at"])) ? $_POST["updated_at"] : "") . "", "WA_DEFAULT"); $UpdateQuery->addFilter("idcomponentfamily", "=", "i", "" . ($_GET['idcomponentfamily']) . ""); $UpdateQuery->execute(); $UpdateGoTo = "component-family.php"; if (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo ? rel2abs($UpdateGoTo, dirname(__FILE__)) : ""; $UpdateQuery->redirect($UpdateGoTo); } ?>