Subject Re: [firebird-php] auto increment last insert
Author Lester Caine
Yves Glodt wrote:

> In general, since PHP5, instead of "SELECT GEN_ID(..." you can also
> use the function
>
> int ibase_gen_id ( string generator [, int increment [, resource
> link_identifier]])
>
> e.g.: $newcontactid = ibase_gen_id ('GEN_CONTACT',1,$dbh);
>
> See here:
> http://lu2.php.net/ibase_gen_id

If we are talking PHP5 then the undocumented bit is all the ibase_ can
be changed to fbird_ , so Johan could use
$userid = fbird_gen_id ('G_USERS');

Would be nice to see the ibase_ fall out of use when using Firebird.
It is just a wrapper round the ibase_* but in the future if any changes
are needed specific to Firebird, then the fbird_ version can be modified.

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services