开发者

Multiple accounts creation at a time

开发者 https://www.devze.com 2023-03-20 08:58 出处:网络
I am trying to build an application, which could create multiple accounts at the same time. For example I add single account using ....

I am trying to build an application, which could create multiple accounts at the same time. For example I add single account using ....

 $data = array('username'=>$username, 'email'=>$email, 'active'=>$active, 'admin'=>$admin);
 $add_user->开发者_高级运维AddUser($data);

Should I use explode method? How do I provide multiple values like username, email etc. Please help...


call AddUser for each addition, or make data a nested array.

 $data = array(
array('username'=>$username, 'email'=>$email, 'active'=>$active, 'admin'=>$admin),
array('username'=>$username2, 'email'=>$emai2, 'active'=>$active2, 'admin'=>$admin2)
)

and then execute each of them .

But I would call AddUser for each addition

0

精彩评论

暂无评论...
验证码 换一张
取 消