Welcome Guest, Not a member yet? Register   Sign In
single line active record field locator
#1

[eluser]shanemesser[/eluser]
Is there a way to do this in a single line:

$all_rows = $this->db->get_where('cms_widget_data_html', array('id' => 1)->result();
return $all_rows[0]->first_name;

for example: $single_value = $this->db->get_where('TABLE',array(XYZ))->result(ROW_#)->field_name where ROW_# is a given record and field is just the field in the table.




Theme © iAndrew 2016 - Forum software by © MyBB