SleePyCode Forums

Special Site & Other Boards => PasteBin => Topic started by: SleePy on May 13, 2008, 02:51 AM

Title: Paste-1210647078:v:use_geshi-1:v:type-php
Post by: SleePy on May 13, 2008, 02:51 AM
   // Determine the method of insertion.
   $queryTitle = $method == 'replace' ? 'REPLACE' : ($method == 'ignore' ? 'INSERT IGNORE' : 'INSERT');
   
   smf_db_error_backtrace($insertRows);
   smf_db_error_backtrace('
      ' . $queryTitle . ' INTO ' . $table . '(' . implode(', ', $indexed_columns) . ')
      VALUES
         ' . implode(',
         ', $insertRows));
   
   // Do the insert.
   $smcFunc['db_query']('', '
      ' . $queryTitle . ' INTO ' . $table . '(' . implode(', ', $indexed_columns) . ')
      VALUES
         ' . implode(',
         ', $insertRows),
      array(
         'security_override' => true,
      ),
      $connection
   );