Usergroup create from PHP

Discussion forum for MOD Writers regarding MOD Development.
Locked
ssoproblem
Registered User
Posts: 4
Joined: Wed Jul 15, 2015 12:05 pm

Usergroup create from PHP

Post by ssoproblem » Fri Jul 24, 2015 1:29 pm

Hi !

I have a problem, hope it won't sound dumb, here it is :

I have an external DB which manage my users and groups.
I have a PHP script which start at the user login.
I check is the group of the user exists in the table "phpbb_groups", if not I wan't to create this group with the ID and name of my external database.
I discovered the function "group_create" but I have a problem : the id of the group table of the PHPBB database is AUTO_INCREMENT so it looks like I can't specify my original ID.
Does the fact that group ID is an auto increment doesnt allow me to specify my own ID ?

Thank you in advance for answer.

Alexandre

Locked

Return to “[3.0.x] MOD Writers Discussion”