debug
This commit is contained in:
parent
5c8a4f9e80
commit
3889612951
@ -117,7 +117,7 @@ class dbcore
|
|||||||
{
|
{
|
||||||
$query = "SELECT * FROM liste_votations";
|
$query = "SELECT * FROM liste_votations";
|
||||||
$this->query($query);
|
$this->query($query);
|
||||||
$votationLine = $this->result->fetch_all(MSQLI_ASSOC);
|
$votationLine = $this->result->fetch_all(MYSQLI_ASSOC);
|
||||||
foreach ($votationLine as $line)
|
foreach ($votationLine as $line)
|
||||||
{
|
{
|
||||||
$votationList[$line["id"]] = $line;
|
$votationList[$line["id"]] = $line;
|
||||||
@ -137,7 +137,7 @@ class dbcore
|
|||||||
{
|
{
|
||||||
$query = "SELECT * FROM liste_votes WHERE idVotation = " . idVotation;
|
$query = "SELECT * FROM liste_votes WHERE idVotation = " . idVotation;
|
||||||
$this->query($query);
|
$this->query($query);
|
||||||
$votes = $this->result->fetch_all(MSQLI_ASSOC);
|
$votes = $this->result->fetch_all(MYSQLI_ASSOC);
|
||||||
foreach ($votes as $line)
|
foreach ($votes as $line)
|
||||||
{
|
{
|
||||||
$votesList[$line["id"]] = $line;
|
$votesList[$line["id"]] = $line;
|
||||||
@ -157,7 +157,7 @@ class dbcore
|
|||||||
{
|
{
|
||||||
$query = "SELECT id, lv.libelle, ms.libelle as methode FROM liste_votes as lv LEFT JOIN methods as ms ON lv.methode=ms.id WHERE idVotation='" . $idVotation . "'";
|
$query = "SELECT id, lv.libelle, ms.libelle as methode FROM liste_votes as lv LEFT JOIN methods as ms ON lv.methode=ms.id WHERE idVotation='" . $idVotation . "'";
|
||||||
$this->query($query);
|
$this->query($query);
|
||||||
$votes = $this->result->fetch_all(MSQLI_ASSOC);
|
$votes = $this->result->fetch_all(MYSQLI_ASSOC);
|
||||||
return $votes;
|
return $votes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user