Can't convert object into a string
<p>I want to output the results of a query in text on a page so I can see what it looks like. Problem is that I am receiving errors if I use an echo like I did below or even use a print.</p>

<p>The error I am receiving is something about not being able to convert an object into a string</p>

<p>My question is what is best way to output query results on the page?</p>

<p>Below is the code:</p>

<pre><code>$answersql = "INSERT INTO Answer (Answer) 
    VALUES (?)";

      if (!$insertanswer = $mysqli-&gt;prepare($answersql)) {
      // Handle errors with prepare operation here
    }  

    $insertanswer-&gt;bind_param("s", $_POST['value'][$i]);

        //$insertanswer-&gt;execute();

        echo $insertanswer;

        if ($insertanswer-&gt;errno) {
          // Handle query error here
        }

        $insertanswer-&gt;close();
</code></pre>
