mgd_create_group

(Midgard 1.4.2 'Bifrost')

mgd_create_group -- Create a group

Description

int mgd_create_group (string name, string official, string street, string postcode, string city, string homepage, string email, string extra, int owner)

Minimum version: Midgard 1.1.1

Creates a new group record with the given parameters.

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


<?php
 $grp = mgd_create_group('midgard','Midgard Project Ry',
           'Museokatu 20-22 A 25','FIN-00100','Helsinki',
           'http://www.midgard-project.org/',
           'user@midgard-project.org',
           'I love Midgard','1');
 if(!$grp){
        echo "creation of group failed.<br>";
        echo "reason: " . mgd_errstr();
 }else{
        echo "group created.";
 }
?>