Welcome Guest, Not a member yet? Register   Sign In
Blog Tutorial: Query results are not showing
#1

[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>&lt;?php echo $heading;?&gt;</h1>
    
&lt;?php foreach($query->result() as $row):?&gt;

<h3>&lt;?$row->title?&gt;</h3>
<p>&lt;?$row->body?&gt;</p>
<p>

<hr>

&lt;?php endforeach;?&gt;



    
&lt;/body&gt;
&lt;/html&gt;


Messages In This Thread
Blog Tutorial: Query results are not showing - by El Forum - 03-03-2009, 03:16 PM
Blog Tutorial: Query results are not showing - by El Forum - 03-03-2009, 03:30 PM
Blog Tutorial: Query results are not showing - by El Forum - 03-04-2009, 07:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB