Re: [phplib] How to know the id after add/update an entry From: Nicolas Berthier (nicobb <email protected>)
Date: 08/04/00

le 4/08/00 8:50, Frédéric BERNOUD à frederic.bernoud <email protected> a écrit :

> Could we know, after add an entry in database with phplib, the position
> of the cursor?

You can use the following SQL statement :
  SELECT DISTINCT
    last_insert_id()
  FROM
    table_name;

Nicolas

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