diff --git a/creation_sondage.php b/creation_sondage.php index 948d43b..459ebe2 100644 --- a/creation_sondage.php +++ b/creation_sondage.php @@ -43,7 +43,7 @@ function check_poll_id($id) { global $connect; - $sql = 'SELECT `id_sondage` FROM sondage`id_sondage` = ' . $connect->Param('id_sondage') ; + $sql = 'SELECT `id_sondage` FROM sondage WHERE `id_sondage` = ' . $connect->Param('id_sondage') ; $sql = $connect->Prepare($sql); $poll = $connect->Execute($sql, [$id]); diff --git a/exportcsv.php b/exportcsv.php index fd868bf..927d57f 100644 --- a/exportcsv.php +++ b/exportcsv.php @@ -82,7 +82,7 @@ while ( $data=$user_studs->FetchNextObject(false)) { for ($k=0;$k<$nbcolonnes;$k++) { $car=substr($ensemblereponses,$k,1); switch ($car) { - case "1": $input .= '"'._('Yes').'",'; $somme[$k]++; break; + case "1": $input .= '"'._('Yes').'",'; break; case "2": $input .= '"'._('Ifneedbe').'",'; break; default: $input .= '"'._('No').'",'; break; }