Date: 05/02/01
- Next message: Ajay Sharma: "Re: [phplib] Explaination of 'db_swquence'"
- Previous message: nathan r. hruby: "Re: [phplib] Explaination of 'db_swquence'"
- In reply to: varin <email protected>: "[phplib] mysql_insert_id with phpLib?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Ajay Sharma: "Re: [phplib] Explaination of 'db_swquence'"
- Previous message: nathan r. hruby: "Re: [phplib] Explaination of 'db_swquence'"
- In reply to: varin <email protected>: "[phplib] mysql_insert_id with phpLib?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

