Changeset 476 for trunk/import/import.php
- Timestamp:
- Apr 25, 2010, 1:12:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/import/import.php
r475 r476 31 31 $Where = ' (`'.$this->Group['PrimaryKeyItem'].'` = "'.$Value[$this->Group['PrimaryKeyItem']].'")'; 32 32 //print_r($Value); 33 33 34 34 $DbResult2 = $this->System->Database->query('SELECT `VersionEnd`, `ID`, `Entry`, '.$Columns.' FROM `'.$this->Group['TablePrefix'].'` WHERE '.$Where.' AND (`Language`=0) ORDER BY `VersionStart` DESC LIMIT 1'); 35 35 //echo('SELECT `VersionEnd`, `ID`, `Entry`, '.$Columns.' FROM `'.$this->Group['TablePrefix'].'` WHERE '.$Where.' AND (`Language`=0) ORDER BY `VersionStart` DESC LIMIT 1'); … … 233 233 { 234 234 foreach($this->Group['Items'] as $GroupItem) 235 if(array_key_exists($GroupItem['Id'], $ColumnIndexes)) 235 236 { 236 237 $Value[$GroupItem['Column']] = addslashes($DBCFile->GetString($I, $ColumnIndexes[$GroupItem['Id']])); 237 238 } 238 $Value['Entry'] = $DBCFile->GetUint($I, 0); 239 240 // Get multicolumn value 241 $Columns = explode(',', $this->Group['DBCIndex']); 242 $ColumnValue = ''; 243 foreach($Columns as $Column) 244 $ColumnValue .= '_'.$DBCFile->GetUint($I, $Column); 245 $ColumnValue = substr($ColumnValue, 1); 246 $Value[$this->Group['PrimaryKeyItem']] = $ColumnValue; 239 247 $this->InsertItem($Value); 240 248 $Count++;
Note:
See TracChangeset
for help on using the changeset viewer.