You are here

function _casetracker_update_db_next_id in Case Tracker 5

1 call to _casetracker_update_db_next_id()
casetracker_update_13 in ./casetracker.install

File

./casetracker.install, line 407

Code

function _casetracker_update_db_next_id() {
  $new_id = NULL;
  switch ($GLOBALS['db_type']) {
    case 'mysql':
      $new_id = mysql_insert_id();
      break;
    case 'mysqli':
      $new_id = mysqli_insert_id();
      break;
  }
  return $new_id;
}