mysql_select_db() or die(mysql_error()); // ********************************************************** ' // Begin by processing our inserts // ********************************************************** ' $insertCount = $saveHandler->ReturnInsertCount(); if ($insertCount > 0) { // Yes there are INSERTs to perform... for ($currentRecord = 0; $currentRecord < $insertCount; $currentRecord++) { $myQuery = "/*** NTB_INSERTSTATEMENT ***/"; // Now we execute this query mysql_query($myQuery); /****** * To properly edit a row after inserting, we need to send the key of the new * row back to the Grid. We can do this using the EBASaveHandler_SetRecordKey function. *******/ $saveHandler->SetRecordKey($currentRecord, mysql_insert_id()); } } // ********************************************************** ' // Continue by processing our updates // ********************************************************** ' $updateCount = $saveHandler->ReturnUpdateCount(); if ($updateCount > 0) { // Yes there are UPDATEs to perform... for ($currentRecord = 0; $currentRecord < $updateCount; $currentRecord++) { $myQuery = "/*** NTB_UPDATESTATEMENT ***/"; // Now we execute this query mysql_query($myQuery); } } // ********************************************************** '