[eluser]NateL[/eluser]
i think your if statement is off in the model, to begin with:
Code:
if($this->insmodel->get($this->uri->segment(3))){
$this->insmodel->edit($this->uri->segment(3));
}
uhh your foreach statement in your view code is anything but pretty...woa...
Code:
<?php foreach($friendlist as $row): ?>
<br /><?=$row['testname']?> (<a href="">edit</a> <a href="">delete</a>)<br />
<?php endforeach; ?>
the beauty of PHP is you can break in and out of HTML. Break out of php, write up your HTML, and it makes it a hellova lot easier to read
That's probably not all of the mistakes there are...just what I was able to find at a quick glance. I didn't test them to work..i just re-wrote them how I would write them
Have you watched the video tutorials?