Fix erreur requête SQL anti-collision
This commit is contained in:
parent
312272b1d0
commit
2c7dceeb19
@ -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]);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user