Skip to content

Commit

Permalink
NOW Echo can hear
Browse files Browse the repository at this point in the history
  • Loading branch information
klanestro committed Jan 22, 2010
1 parent 8e2bfb6 commit 625fce9
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions preniVortoj.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

<?php
// Created by Talisman 01/2010 ★✩
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

$vorto = $_GET['vorto']; // Get the Word from Outer Space and Search for it!

Expand Down Expand Up @@ -97,17 +100,27 @@ function showphp_Smartfm($SFvorto)
// if there are no quizzes, we skip the part below
// we skip it because $object->quizzes will produce a warning or a notice
// if "quizess" is not a member of the $object
if(!isset($object->quizzes))
if(!isset($object->responses))
{
continue;
}
// print_r($response); //works
// print_r($response->quizzes); //works

// quizess
foreach($response->quizzes as $quiz)
foreach($response->quizzes as $quiz)
{
echo $quiz->question; // question
echo $quiz->answer; // answer
echo '<br></br>';
}
// quizess
/*
foreach($response->quizzes as $quiz)
{
echo $quiz->question;
echo $quiz->answer;
}
*/
}
}

Expand Down Expand Up @@ -151,6 +164,7 @@ function showphp_Smartfm($SFvorto)


showphp_Smartfm($SFvorto);
// print_r($SFvorto);

?>

Expand Down

1 comment on commit 625fce9

@klanestro
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what made it work was 100-103

Please sign in to comment.