Hello,
I had the same situation, and implemented some kind of autoincrement myself.
Take a look to this:
// autoincrement KEYINDEX
$sth = ibase_query($dbh,'SELECT MAX(KEYINDEX) FROM ADDRESS');
settype($NEWKEYINDEX,'integer');
$NEWKEYINDEX=1;
while ($row = ibase_fetch_row ($sth))
{
$NEWKEYINDEX = $row[0] + 1;
}
ibase_free_result($sth);
(more of this here www.mind.lu/~yg/i-man/)
Then, I issue a second query, and use the value
of $NEWKEYINDEX for my primary key.
I know there is a little risk of failure when two users would execute this page at
the same time, but I use this in only two
places in my application, and I found no
other simple solution.
You could also do it with a stored procdure/trigger in Interbase.
There is a powerful ibsupport mailing list (ib-support@yahoogroups.com)
yves