Welcome Guest, Not a member yet? Register   Sign In
PHP error. Why?
#1

This bit of code is causing a PHP error (actually a notice) at line 3460:
Trying to access array offset on value of type null.  Any idea why this is happening? 

for ($i = 0; $i < $iCount; $i++) {
            if ($row[$i]['id']==NULL)    << this is the line with the error
                continue;
            $bcs = @(implode(',', array_intersect_key($_SESSION['business_components'], array_flip(explode(',', $row[$i]['bc'])))));
            $this->db->set('business_component_txt', $bcs);
            $id=$row[$i]['id'];
            $this->db->where('id', $id);  //this is the id of the row we are updating
            $this->db->update('rental',);
        }
proof that an old dog can learn new tricks
Reply


Messages In This Thread
PHP error. Why? - by richb201 - 12-16-2022, 09:35 AM
RE: PHP error. Why? - by ikesela - 12-16-2022, 04:17 PM
RE: PHP error. Why? - by Sprint - 12-20-2022, 01:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB