Changeset 12747 for branches/2.3/include/dblayer/functions_mysql.inc.php
- Timestamp:
- Dec 16, 2011, 2:52:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/include/dblayer/functions_mysql.inc.php
r12010 r12747 417 417 * @return void 418 418 */ 419 function mass_inserts($table_name, $dbfields, $datas) 420 { 419 function mass_inserts($table_name, $dbfields, $datas, $options=array()) 420 { 421 $ignore = ''; 422 if (isset($options['ignore']) and $options['ignore']) 423 { 424 $ignore = 'IGNORE'; 425 } 426 421 427 if (count($datas) != 0) 422 428 { … … 439 445 { 440 446 $query = ' 441 INSERT INTO '.$table_name.'447 INSERT '.$ignore.' INTO '.$table_name.' 442 448 ('.implode(',', $dbfields).') 443 449 VALUES';
Note: See TracChangeset
for help on using the changeset viewer.