Hi
I am trying to retrieve the primary key of the last record that I insert using mysql. Is there any way of doing this?
Thanks, Joe
use the MAX() aggregate function
$lastPrimaryKey = mysql_insert_id();
Excellent, exactly what I wanted. Thanks very much.
Joe