[eluser]gtech[/eluser]
I have interpreted what your code is doing differently
I have assumed your passing $data into the view?
in which case in the view you need to do somthing like:
view code
Code:
<?php foreach($row as $row_item):?>
<b>Event Birthday:</b><?=$row_item['event_Bday']?><br>
<?php endforeach?>
result_array returns an array of arrays so you can iterate through the results of a select statement that may return multiple rows of data.
e.g.
[0]['tablecolumn1']
[1]['tablecolumn1']
IF you don't want to do a foreach then you use
row_array to build a 1 dimentional array INSTEAD of result_array
SO to save confusion:
Code:
..
//CONTROLLER:
$sql = 'SELECT user_name, event_Bday, event_EDay FROM events,users
WHERE event_id = ? AND events.user_id = users.user_id';
$query = $this->db->query($sql, array($event_id));
$data['row'] = $query->row_array();
$this->load->view('view', $data);
=============================
//VIEW (view.php):
<b>Event Birthday:</b><?=$row['event_Bday']?><br>