Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple set_user_info call issue #80

Open
ashrafrafi opened this issue Mar 7, 2020 · 0 comments
Open

multiple set_user_info call issue #80

ashrafrafi opened this issue Mar 7, 2020 · 0 comments

Comments

@ashrafrafi
Copy link

ashrafrafi commented Mar 7, 2020

hello,
I was trying to push the same data into multiple devices using this class. But every time it inserts in only one device. Can anyone help me with this?
$device_data = array( "ip_address" => "192.168.0.1", "ip_address" => "192.168.0.2"); foreach ($device_data as $d => $devices) { $params = array('ip' => $devices["ip_address"]); $this->load->library('Tad_access', $params); $r = $this->tad_access->tad->set_user_info([ 'pin' => $insert_id . "-E", 'name' => $staff_name, 'privilege' => 1, 'password' => $rand_pass_for_attndevice ]); }
this is my code. please help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant