本文整理汇总了PHP中DbUtils::updateDossard方法的典型用法代码示例。如果您正苦于以下问题:PHP DbUtils::updateDossard方法的具体用法?PHP DbUtils::updateDossard怎么用?PHP DbUtils::updateDossard使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DbUtils
的用法示例。
在下文中一共展示了DbUtils::updateDossard方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DbUtils
<?php
require_once 'entity/Runner.php';
require_once 'entity/Team.php';
require_once 'tools/service/tools.php';
require_once 'tools/http/HTTP_REQUEST.php';
require_once 'tools/constant/Config.php';
include 'pages/header/correction_header.php';
$obj_utils = new DbUtils();
$tools = new Tool($dbUtils);
$obj_utils->connect();
if (HTTP_RESQUEST::exist("actionType") && HTTP_RESQUEST::post("actionType") == 'runner') {
$newDossard = HTTP_RESQUEST::post("newDossard");
$oldDossard = HTTP_RESQUEST::post("oldDossard");
$teamId = HTTP_RESQUEST::post("teamId");
$obj_utils->updateDossard($oldDossard, $newDossard, $teamId);
$runner1Id = HTTP_RESQUEST::post("runner1Id");
$runner2Id = HTTP_RESQUEST::post("runner2Id");
$nom1 = HTTP_RESQUEST::post("nom1");
$prenom1 = HTTP_RESQUEST::post("prenom1");
$nom2 = HTTP_RESQUEST::post("nom2");
$prenom2 = HTTP_RESQUEST::post("prenom2");
$sexe1 = HTTP_RESQUEST::post("sexe1");
$sexe2 = HTTP_RESQUEST::post("sexe2");
$obj_utils->updateRunner($nom1, $prenom1, $runner1Id, $sexe1);
$obj_utils->updateRunner($nom2, $prenom2, $runner2Id, $sexe2);
}
$tabRunners = $obj_utils->getAllRaceTeams();
if ($tabRunners != 0) {
?>
<table class="principale">