Sorry to ask this, but I just want to make sure there aren't any surprises.
There's a mysql function: mysql_insert_id( $db_handle ); that returns the ID number of an AUTO_INCREMENT column by the previous INSERT query. I've replaced the call with a sqlite call that sounds like it does the same thing: function DB_insert_id( $db ) { return sqlite_last_insert_rowid( $db ); } Do these two functions do the same thing? Are there any surprises or differences between the two? Thanks, Pete -- Save Star Trek Enterprise from extinction: http://www.saveenterprise.com GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D