diff --git a/php/index.php b/php/index.php index 8308fb94ded505a83331eecbc30aebc410752f9c..1003f60dad87b1df36ff46d7998e25495f08c398 100644 --- a/php/index.php +++ b/php/index.php @@ -13,20 +13,17 @@ $db->bootEloquent(); $db->connection()->enableQueryLog(); function show($log){ -<<<<<<< HEAD foreach($log as $l) - echo implode(",", $l); -======= + //echo implode(",", $l); echo "Logs: </br>"; $length=count($log); for($i=0; $i<$length; $i++){ $l= $log[$i]; echo "temps d'exec: ".$l["time"]."</br>Query: ".$l["query"]."</br>"; } ->>>>>>> 009e759b38e5103056185d74fe95bbabeefa3a02 } -/*print "----------------------PARTIE 1----------------------<br>"; +print "----------------------PARTIE 1----------------------<br>"; //question 1 $time_start = microtime(true); @@ -56,7 +53,7 @@ $time_end = microtime(true); $time = $time_end - $time_start; echo "temps d execution de get rating of mario game(en seconde): ".$time."</br>"; -*/print "----------------------PARTIE 2----------------------<br>"; +print "----------------------PARTIE 2----------------------<br>"; print "Question 1 : Jeu dont le nom contient 'Mario'"; $question1 = new question\Q1(); @@ -75,11 +72,11 @@ foreach($characterFirstMario as $cFM) { print "Name : ".$cFM->name.'</br>'; } -/*print "Question 4 : Afficher le nom des personnages des jeux dont le nom (du jeu) contient 'Mario'<br>"; +print "Question 4 : Afficher le nom des personnages des jeux dont le nom (du jeu) contient 'Mario'<br>"; $characterMario = \bddApp\model\Game::getCharacterMario(); foreach($characterMario as $cM) { print "Name : ".$cM->name.'</br>'; -}*/ +} print "Question 5 : Les jeux développés par une compagnie dont le nom contient 'Sony'<br>"; $companySony = \bddApp\model\Company::getCompany();