Subject | RE: [firebird-php] auto increment last insert |
---|---|
Author | Johan van Zyl |
Post date | 2004-11-24T11:30Z |
oops, I have PHP 4.?.?
-----Original Message-----
From: Lester Caine [mailto:lester@...]
Sent: 24 November 2004 13:08
To: firebird-php@yahoogroups.com
Subject: Re: [firebird-php] auto increment last insert
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
Yahoo! Groups Sponsor
Get unlimited calls to
U.S./Canada
----------------------------------------------------------------------------
--
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-php/
b.. To unsubscribe from this group, send an email to:
firebird-php-unsubscribe@yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.799 / Virus Database: 543 - Release Date: 2004/11/19
[Non-text portions of this message have been removed]
-----Original Message-----
From: Lester Caine [mailto:lester@...]
Sent: 24 November 2004 13:08
To: firebird-php@yahoogroups.com
Subject: Re: [firebird-php] auto increment last insert
Yves Glodt wrote:
> 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
Yahoo! Groups Sponsor
Get unlimited calls to
U.S./Canada
----------------------------------------------------------------------------
--
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-php/
b.. To unsubscribe from this group, send an email to:
firebird-php-unsubscribe@yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.799 / Virus Database: 543 - Release Date: 2004/11/19
[Non-text portions of this message have been removed]