the insert is storing the ID in a session named "WADA_Insert_UserDetails":
$WA_sessionName = "WADA_Insert_UserDetails";
On the detail page, you should be filtering the recordset using the WADA_Insert_UserDetails session variable, not the mysql_insert_id session variable.