> > ive used mysql_insert_id() to get the id of an insert just performed, > > but this one is to find the one with the largest id, which could have > > been added any time in the past. Try SELECT MAX(id) FROM table