mgd_create_person

(Midgard 1.4.2 'Bifrost')

mgd_create_person -- Create a person record

Description

int mgd_create_person (string firstname, string lastname, string birthdate, string street, string postcode, string city, string handphone, string homephone, string workphone, string homepage, string email, int topic, int department, int office, string extra)

Minimum version: Midgard 1.0

Creates a new person record with the provided parameters.

Returns the id of the created record if successful. Returns FALSE on failure.


<?php
 $firstname  = "Armand";
 $lastname   = "Verstappen";
 $birthdate  = "1968-12-16";
 $street     = "Secret Street 13";
 $postcode   = "1000 AA";
 $city       = "Boerenstronkadeel";
 $handphone  = "+31201234567";
 $homephone  = "+31207654321";
 $workphone  = "+31201234567";
 $homepage   = "http://www.envida.nl";
 $email      = "info@nl.envida.net";
 $topic      = 13;
 $department = 17;
 $office     = 169;
 $extra      = 31;

 mgd_create_person( $firstname, $lastname, $birthdate, $street, $postcode,
                    $city, $handphone, $homephone, $workphone, $homepage,
                    $email, $topic, $department, $office, $extra);
?>