Index: /trunk/psLib/src/db/psDB.c
===================================================================
--- /trunk/psLib/src/db/psDB.c	(revision 7049)
+++ /trunk/psLib/src/db/psDB.c	(revision 7050)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-04-20 02:22:28 $
+ *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-05-03 02:35:37 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -883,4 +883,10 @@
 
     return rows;
+}
+
+long psDBLastInsertID(psDB *dbh)
+{
+    // XXX return type is actually my_ulonglong - should the return be psU64?
+    return (long)mysql_insert_id(dbh->mysql);
 }
 
Index: /trunk/psLib/src/db/psDB.h
===================================================================
--- /trunk/psLib/src/db/psDB.h	(revision 7049)
+++ /trunk/psLib/src/db/psDB.h	(revision 7050)
@@ -10,6 +10,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-09-26 21:13:16 $
+ *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-05-03 02:35:37 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -275,4 +275,14 @@
 );
 
+/** Get the last insert ID
+ *
+ * Returns the value of MySQLs 'LAST_INSERT_ID()' function
+ *
+ * @return long:    The last insert ID
+ */
+long psDBLastInsertID(
+    psDB *dbh                          ///< Database handle
+);
+
 /// @}
 
