Re: [phplib] mysql_insert_id with phpLib? From: Chris Padfield (chris <email protected>)
Date: 05/02/01

yes, add this function to the bottom of the mysql class just before the
last }

function last_id() {
      return mysql_insert_id($this->Link_ID);
      }

and then after a query call it like:
$id = $db->last_id();

Chris Padfield
http://www.ascifi.com/

----- Original Message -----
From: <varin <email protected>>
To: <phplib <email protected>>
Sent: Wednesday, May 02, 2001 5:06 PM
Subject: [phplib] mysql_insert_id with phpLib?

> Does anyone know if it is possible to replicate mysql_insert_id with
phpLib?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>
>

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