From: Richard S. <ri...@ri...> - 2003-05-30 08:08:30
|
Here's the function I wrote that's not working... function createNewUser($userInfo){ =09 if(is_array($_POST)) $_POST=3Darray_merge($_POST, $userInfo); else $_POST=3D$userInfo; =09 $_SESSION["newUser"] =3D new PHPWS_User; $_SESSION["newUser"]->userAction("add"); =09 } =09 =00=00 On Friday, May 30, 2003, at 12:31 AM, Richard Sumilang wrote: > I'm trying to use $_SESSION['OBJ_user']->userAction("add") to add the=20= > posted values into the database through my own user creation form=20 > however I keep getting the error below. > > /************************************************/ > > DB Error: no database selected > select * from mod_users where email =3D 'ea...@ds...' [nativecode=3D = ** ] > > /************************************************/ > > Anyone have any idea why or should I be using another function to=20 > create user's manually? > > Thanks, > > Richard S. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > > |