17 lines
731 B
PHP
Executable File
17 lines
731 B
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// -----------------------------------------------------
|
|
// Requete insert
|
|
// -----------------------------------------------------
|
|
include ("condition.switchCode.php");
|
|
$reqInsert="INSERT INTO `rConditions` (numR, descR, condR, codeR, operateurR, seuilR) values (0, '" .$descCond. "', '" .$condR. "', '" .$code. "', '" .$opeR. "', '" .$seuilR. "');";
|
|
$resConn='';
|
|
$resConn=$idPdo->query($reqInsert);
|
|
$debugMsg .= monDebug(2,['reqInsert' => $reqInsert],'condition.reqInsert.php');
|
|
if ($resConn) {
|
|
$admMsg .= 'Création de la condition = ok !'; $admMsgClass='ok';
|
|
}
|
|
else {
|
|
$admMsg .= 'Erreur lors de la création de la condition"; $admMsgClass='ko';
|
|
}
|
|
?>
|