i am using
$sql= "select * from tablename where id=1";
$query= $this->db->query($sql);
$row = $query->result_array();
in model of codeigniter.My table consists of a field name 'ID'.how to retrive ID from $row.
$id = $row['ID'];
which shows
<p>Message: Undefined index: DOCUMENT_ID</p>
how to solve this