query($reqSelect); if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug (2, ['reqSelect' => $reqSelect ],'');} if ($resConn) { $maxItem=$resConn->fetch(PDO::FETCH_ASSOC); $nextIDItem=$maxItem['mxId']; if ($nextIDItem=='') $theNewIdItem=1; else $theNewIdItem=$nextIDItem+1; } if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug (2, ['req max item' => $theNewIdItem ],'');} ?>