I was looking on the client rather than the server.
Here is the error: Cannot use object of type stdClass as array
here is the code that is creating it.
$query=$this->db->query($sql, array($_SESSION['userid'], $_SESSION['campaign'],$bus_comp,$taxyear));
$row=$query->result();
$id=$row[0]['id'];
should this be $id=$row[0]=>id?
If not, what is wrong with it?
proof that an old dog can learn new tricks