Highest ID

From: Date: Tue, 29 Aug 2000 10:02:49 +0000
Subject: Highest ID
Groups: php.db 
Request: Send a blank email to php-db+get-2432@lists.php.net to get a copy of this message
Hi, I've got a table whith a primary key as auto incrementing field. I want to know what the highest ID is. I know you can use mysql_insert_id but that is only after an insert. I want to know it whithout doing an insert which gives me an $insert_id, delete that $insert_id and nowing that the highest is $insert_id - 1; any suggestions ? J.S. de Boer

« previous php.db (#2432) next »