AW: [PEAR] auto number

From: Date: Tue, 04 Mar 2003 07:28:44 +0000
Subject: AW: [PEAR] auto number
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4035@lists.php.net to get a copy of this message
> Von: Charles Kline [mailto:ckline@rightcode.net] > Gesendet: Dienstag, 4. März 2003 05:16 > An: pear-general@lists.php.net > Betreff: [PEAR] auto number > > Using PEAR DB is there a way to get the record id of the row which is > about to be inserted? I have an ID field which is set to autonumber. I > would like to use this number (id) to name a document which gets > uploaded with the rest of the data. Is this doable? Yes use DB::nextId(); Check out the exact usage in the PEAR DB manual on pear.php.net. Regards, Lukas

« previous php.pear.general (#4035) next »