John P . Looney wrote:
> On Thu, Mar 08, 2001 at 12:07:59PM +0100, pp mentioned:
>
>> Hello!
>>
>> Maybe I made stupid mistake but it seems to me very strange:
>
>
> To make it simple, use something like;
>
> $person = mgd_get_person();
> if($person->create()) {
> echo "Create worked!\n";
> $person->username=$per_username;
> $person->firstname=$per_firstname;
> $person->password=$per_password;
> $person->lastname=$per_lastname;
> $person->birthdate=$per_date;
> $person->street=$per_street;
> $person->city=$per_city;
> $person->homephone=$per_homephone;
> $person->handphone=$per_handphone;
> $person->workphone=$per_workphone;
> $person->homepage=$per_homepage;
> $person->email=$per_email;
> $person->pgpkey=$per_pgpkey;
> $person->extra=$per_extra;
> $person->create();
> }
Why do you create twice ?
This code will create an empty person, then will create the person...
> Instead. I know this is for creating people, not articles, but it'll work
> the same way. Much easier!
>
> Kate
--
Best Regards,
David Guerizec Free Software Developer
Aurora R&D [EMAIL PROTECTED]
Midgard core developer http://www.midgard-project.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]