title: Echo tinyint in wordpress admin page
body: <p>hope someone can help me with this little problem.
  I am trying to echo a tinyint from my MySQL in my backend page to see who accepted and who did not.</p>
  
  <p>this is my code:</p>
  
  <pre><code>&lt;?php
  ini_set("display_errors", true);
  error_reporting(E_ALL);
  global $wpdb;
  
  $result2 = $wpdb-&gt;get_results("SELECT * FROM ReparationQuotes ORDER BY Id DESC", OBJECT);
  ?&gt;
  
  &lt;?php foreach ($result2 as $q2) {
      //$quote2 = $wpdb-&gt;get_results("SELECT Accepted FROM ReparationQuotes Where ReparationId = '" . esc_sql($q2-&gt;Id) . "'", OBJECT);
      if ($q2-&gt;Accepted == 1)
      $accepted = "true";
      elseif ($q2-&gt;Accepted == 0)
      $accepted = "false";
  }
      ?&gt;
  </code></pre>
  
  <p>Then I am trying to call the variable in my table</p>
  
  <pre><code>&lt;td class="post-title page-title column title"&gt;
          &lt;strong&gt; &lt;?php echo $accepted ?&gt; &lt;/strong&gt;
      &lt;/td&gt;
  </code></pre>
  
  <p>Unluckily this is only placing "false". No where to find True.
  It seems like it is getting the values wrong from mysql.</p>
  
  <p>If I change 1 to 0 and 0 to 1 everything is "true".
  What might be the problem here?
  Thanks all for helping out.</p>