Problem with UserInfo:add
Permalink
Hi,
I am facing some problems with adding users through script.
$uo = UserInfo::add($data);
when I printed $data, its showing the correct input according to my code.
print_r($data) gives Array ( [uName] => jkjkjkjk@jkj.com [uPassword] => jkjkjk [uEmail] => jkjkjkjk@jkj.com )
So I think I'm getting correct input on my php file.
But when the above mentioned line, which is
$uo = UserInfo::add($data);
It gives duplicate entry in Users table for key uName.
Please help.
I am facing some problems with adding users through script.
$uo = UserInfo::add($data);
when I printed $data, its showing the correct input according to my code.
print_r($data) gives Array ( [uName] => jkjkjkjk@jkj.com [uPassword] => jkjkjk [uEmail] => jkjkjkjk@jkj.com )
So I think I'm getting correct input on my php file.
But when the above mentioned line, which is
$uo = UserInfo::add($data);
It gives duplicate entry in Users table for key uName.
Please help.