I'm trying to create a iterate through a row in a MySQL table in one of my CodeIgniter projects, how could I "loop" through the table? Is it just a simple for loop like in other languages?
EDIT:
The answer is as followed:
$query = $this->db->get('mytable'); // select table "mytable" from database
foreach ($query->result() as $row) { // loop thru table and access each row's field
// by using $row->fieldname
}