Beispiel #1
0
 /**
  * Returns placebo autoincrement value
  * @access public
  * @param $strTable string table name
  * @param $strField string field name
  * @return mixed
  */
 function getNextAutoValue($strTable, $strField)
 {
     return (int) amDB::getOne("select max({$strField}) + 1 as next from {$strTable} limit 1");
 }