Welcome Guest, Not a member yet? Register   Sign In
Opinion on best coding practices
#3

[eluser]stuffradio[/eluser]
Have a model with

Code:
$lines = $this->db->query("select * from tasklist where (Active=1 or Priority=1)");
return $lines->result();

- pass the array in your controller from the model to the view
- do a foreach loop and echo the table

Edit: Exactly what he said is what I did here.


Messages In This Thread
Opinion on best coding practices - by El Forum - 07-09-2010, 06:07 PM
Opinion on best coding practices - by El Forum - 07-09-2010, 11:25 PM
Opinion on best coding practices - by El Forum - 07-09-2010, 11:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB