本文整理匯總了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">