[svn r13884] Added method insert_id()

skala
Yannick Warnier 17 years ago
parent d987ab8343
commit 3edaa27532
  1. 8
      main/inc/lib/database.lib.php

@ -683,6 +683,14 @@ class Database
return mysql_result($resource,$row);
}
}
/**
* Recovers the last ID of any insert query executed over this SQL connection
* @return integer Unique ID of the latest inserted row
*/
function insert_id()
{
return mysql_insert_id();
}
}
//end class Database
?>
Loading…
Cancel
Save