News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1210647078:v:use_geshi-1:v:type-php

Started by SleePy, May 13, 2008, 02:51 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

SleePy

   // 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
   );
No siggy! :D