[eluser]JenR-o-Jenny[/eluser]
Hi -- another CI newbie with a question about the Blog Tutorial. :red:
I am stuck at the step of populating the blogview.php page to output the database query results. I know it is reading the database because I get two records back but the title and body are not showing for each record.
Code is below
-- thanks in advance for help, I know the tutorials are a bit outdated (after searching the forums) and I hope I am missing something small.
Thanks,
Jenifa
Code:
<html>
<head>
<title><?php echo $title;?></title>
</head>
<body>
<h1><?php echo $heading;?></h1>
<?php foreach($query->result() as $row):?>
<h3><?$row->title?></h3>
<p><?$row->body?></p>
<p>
<hr>
<?php endforeach;?>
</body>
</html>