Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] INVALID ARGUMENT for foreach()
#1

[eluser]maria clara[/eluser]
@saidai jagan,

i already solved my problem regarding this.

i put this:
Code:
print_r($rows);
        foreach ($rows as $row)
        {
            $rdata = explode('|', $row);
            
            $data['user_id'] = $id;
            $data['company_id'] = $rdata[3];            
            
            $this->db->insert('sec_companyaccess', $data);
        }

and the PHP error doesn't occur anymore.
thanks to saidai jagan,

regards,
maria Wink
#2

[eluser]saidai jagan[/eluser]
seems Hilarious..... by putting ( "print_r($rows)" ) How the problem solves ? $rows Must be a valid array.
Note : Don't post the same issue in different Threads. Otherwise it ll be MARKED as SPAM.
#3

[eluser]maria clara[/eluser]
yes,,hilarious may be..but really the error don't occur anymore even though i haven't done yet the detail list.

P.S sorry for the different thread

thanks,
maria Wink




Theme © iAndrew 2016 - Forum software by © MyBB