Re: [phplib] mysql:last_insert_id() From: Björn Schotte (bjoern <email protected>)
Date: 04/11/01

* Peter Niederlag wrote:
> mysql_insert_id(), just I don't know how to get this done with PHPLIB
> 7.2c/db_mysql.inc.
> Any hints are appreciated.

RTFM:

$id = $db->nextid("foobar");

$db->query("insert into foo(id,name) values($id,'blubb')");

-- 
Björn Schotte                                      bjoern <email protected>
http://rent-a-phpwizard.de/                   bjoern <email protected>

PHP Schulungen, Softwareentwicklung, Coaching

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>