Welcome Guest, Not a member yet? Register   Sign In
Validation problems.
#2

[eluser]tobben[/eluser]
Code:
<?php foreach($query1->result() as $row1):?>
<li>
<h2>&lt;?=$row1->body;?&gt;</h2>

<p>&lt;?=$row1->author;?&gt;</p>
</li>
<hr>
&lt;?php endforeach; ?&gt;
&lt;?=anchor('idejas', 'sākums');?&gt;

Is it finnish? anyways.. isnt the link supposed to be under each post?

Than you have to put it inside the foreach.

Quote:&lt;?php foreach($query1->result() as $row1) : ?&gt;


<p><a href="/some_stuff/article/&lt;?php echo $row1->id; ?&gt;" title="Read more of:
&lt;?php echo $row1->title;?&gt;">Read more..</a></p>

&lt;?php endforeach; ?&gt;


Also...

Code:
if ($this->validation->run() == TRUE) {


Messages In This Thread
Validation problems. - by El Forum - 12-13-2007, 04:08 AM
Validation problems. - by El Forum - 12-13-2007, 07:05 AM
Validation problems. - by El Forum - 12-13-2007, 07:08 AM
Validation problems. - by El Forum - 12-13-2007, 07:10 AM
Validation problems. - by El Forum - 12-13-2007, 01:37 PM
Validation problems. - by El Forum - 12-13-2007, 03:33 PM
Validation problems. - by El Forum - 12-14-2007, 04:09 AM
Validation problems. - by El Forum - 12-14-2007, 09:05 AM
Validation problems. - by El Forum - 12-14-2007, 09:15 AM
Validation problems. - by El Forum - 12-15-2007, 06:55 AM
Validation problems. - by El Forum - 12-15-2007, 02:32 PM
Validation problems. - by El Forum - 12-15-2007, 03:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB