Print responses and categories into Admin Page without CSS
continuous-integration/drone/push Build is passing Details

interestingProfiles
Alexis 2 years ago
parent 9e077c8939
commit af0fe2fe0d

@ -55,7 +55,7 @@ class GatewayForm
$query = "SELECT * FROM Form"; $query = "SELECT * FROM Form";
$this->connection->executeQuery($query); $this->connection->executeQuery($query);
var_dump($this->connection->getResults()); return $this->connection->getResults();
} }
/** /**

@ -78,7 +78,7 @@ class GatewayListResponseOfCandidate
$query = "INSERT INTO Submit (responsesCandidate, response) VALUES(:responsesCandidate, :response)"; $query = "INSERT INTO Submit (responsesCandidate, response) VALUES(:responsesCandidate, :response)";
$this->connection->executeQuery($query, array( $this->connection->executeQuery($query, array(
':responsesCandidate' => array($idListQuestion, PDO::PARAM_STR), ':responsesCandidate' => array($idListQuestion, PDO::PARAM_STR),
'response' => array($idResponse, PDO::PARAM_STR) ':response' => array($idResponse, PDO::PARAM_STR)
)); ));
} }
} }

@ -95,6 +95,8 @@ class ControllerAdmin
$questions = (new ModelAdmin())->getQuestions(); $questions = (new ModelAdmin())->getQuestions();
$responsesCandidate = (new ModelAdmin())->getResponsesCandidate(); $responsesCandidate = (new ModelAdmin())->getResponsesCandidate();
var_dump($responsesCandidate);
global $rep, $views; global $rep, $views;
require_once($rep.$views['admin']); require_once($rep.$views['admin']);
} }

Loading…
Cancel
Save