title: How to fetch the title of a Joomla article?
body: <p>I have designed a Joomla template. I want to bring my articles on my template, I have written code that is bring article body text on my template but neither image nor title is coming up. Can anyone help please ?</p>
  
  <pre><code>$query = "select * from jh7na_content order by id desc limit 2";
  $sql = mysql_query($query) or die(mysql_error());
  while($row=mysql_fetch_array($sql)){
      echo "&lt;div id='div1' style='border='2px';'&gt;".html_entity_decode($row['introtext'])."&lt;/div&gt;";             
  }
  </code></pre>