[eluser]cyberjunkie[/eluser]
Hello friends!
I created a controller and model and in my view I loop through a query like so..
Code:
<?php foreach($query as $row) { ?>
<p>Country: <?php echo $row->country; ?></p>
<p>Website: <?php echo $row->website; ?></p>
<?php } ?>
I'm not used with foreach loops.. why do I get
Code:
Country:
Website:
Country: USA
Website: http://www.mysite.com
?
Notice how website: and country: are duplicated. This didn't happen with while loops I think. Am I doing something wrong?