vpx_db_get_last_id

Versions
mediamosa-174
vpx_db_get_last_id()

Returns the last inserted ID when used autoincrement on previous insert query. Make sure you call it inside the db_set_active() as the insert(!).

Return value

integer

▾ 12 functions call vpx_db_get_last_id()

vpx_acl_aut_group_create in vpx_acl/vpx_acl.inc
vpx_acl_aut_group_create in vpx_acl/vpx_acl.inc
vpx_acl_aut_group_create in vpx_acl/vpx_acl.inc
vpx_acl_aut_name_create in vpx_acl/vpx_acl.inc
Creates a entry in the aut_name table.
vpx_acl_aut_name_create in vpx_acl/vpx_acl.inc
Creates a entry in the aut_name table.
vpx_acl_aut_name_create in vpx_acl/vpx_acl.inc
Creates a entry in the aut_name table.
vpx_ftp_batch_create in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_ftp_batch_create in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_ftp_batch_create in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
_transcoding_profiles_create_transcode in transcoding_profile/transcoding_profile.module
Create transcode profile.
_transcoding_profiles_create_transcode in transcoding_profile/transcoding_profile.module
Create transcode profile.
_transcoding_profiles_create_transcode in transcoding_profile/transcoding_profile.module
Create transcode profile.

Code

vpx_shared/vpx_shared_db.inc, line 229

<?php
function vpx_db_get_last_id() {
  return (int)db_result(db_query("SELECT LAST_INSERT_ID()"));
}
?>