title: Display Joomla module with php
body: <p>extremelly need help with php request to database. I wrote a code which should display module in new php file</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  $db = new mysqli('server', login', 'pass', 'db');
  $query = 'SELECT * FROM k7c1b_modules WHERE id = "339"';
  $result = $db-&gt;query($query);  
  $row = $result-&gt;fetch_row();
  echo $row;
  $result-&gt;close();
  ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But as a result I see only message "Array". If I write echo $row[1]; I see module's Id. But how to make my code display whole module?</p>