Subject | Re: [firebird-php] auto increment last insert |
---|---|
Author | Lester Caine |
Post date | 2004-11-24T11:08:08Z |
Yves Glodt wrote:
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
> In general, since PHP5, instead of "SELECT GEN_ID(..." you can alsoIf we are talking PHP5 then the undocumented bit is all the ibase_ can
> 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
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