本文整理匯總了PHP中interPool::insertNewSondage方法的典型用法代碼示例。如果您正苦於以下問題:PHP interPool::insertNewSondage方法的具體用法?PHP interPool::insertNewSondage怎麽用?PHP interPool::insertNewSondage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類interPool
的用法示例。
在下文中一共展示了interPool::insertNewSondage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: isset
$choix3 = $_REQUEST["choix3"];
$choix4 = $_REQUEST["choix4"];
$choix5 = $_REQUEST["choix5"];
$choix6 = $_REQUEST["choix6"];
$reponse = $_REQUEST["reponse"];
$detail_reponse = $_REQUEST["detail_reponse"];
$all_pools_checked = isset($_REQUEST["all_pools"]) ? "checked" : "";
if ($question == "") {
$message = "Vous avez oublié d'entrer une question...";
} elseif ($date_debut_sondage == "0000-00-00" || $date_fin_sondage == "0000-00-00") {
$message = "Vous devez spécifier une date de début et une date de fin.";
} else {
if ($reponse == "") {
$reponse = 0;
}
$pool->insertNewSondage($id_pool, $date_debut_sondage, $date_fin_sondage, $question, $choix1, $choix2, $choix3, $choix4, $choix5, $choix6, $reponse, $detail_reponse, $gerant, $id_saison, $all_pools_checked);
$date_debut_sondage_value = "0000-00-00";
$date_fin_sondage_value = "0000-00-00";
$question_value = "";
$choix1_value = "-";
$choix2_value = "-";
$choix3_value = "-";
$choix4_value = "-";
$choix5_value = "-";
$choix6_value = "-";
$reponse_value = "";
$detail_reponse_value = "";
$all_pools_checked = "";
$insertSucceeded = TRUE;
}
}