[eluser]gh0st[/eluser]
I have a really big table, and I don't want to be doing:
Code:
print "Name: " . $row->name
print "Age: " . $row->age
print "Salary: " . $row->salary
// ...etc..
I want to do:
Code:
print $field->name;
print $field->value;
// output: name: John
// output: age: 32
// output: salary: 1000
// etc
I've looked at $this->db->field_data() but there is no $this->db->field_value attribute.
Is there a way to do this?