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 ?
$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 "<div id='div1' style='border='2px';'>".html_entity_decode($row['introtext'])."</div>";
}