int db_get_next_free_id (string tablename [, string idfield])
Gets the next available id (current id + 1) in a table.
Arguments
tablename is the name of table to be examined.
idfield is the name of identifier field (column). Default is "id".
Result
The function returns the next available id (current id + 1) or NULL if an error occurs. consult
Example
|
See also