Changeset 241 for trunk/import
- Timestamp:
- Jul 3, 2009, 1:49:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/import/import_sql_mangos.php
r237 r241 31 31 { 32 32 $folow_structure = False; 33 echo ('Struktura: <br />');34 print_r($structure);35 echo ('<br /><br />');33 // echo ('Struktura: <br />'); 34 // print_r($structure); 35 // echo ('<br /><br />'); 36 36 } 37 37 if (($folow_structure == True) and ($Line != '')) … … 71 71 $value_buff = $value_buff.$str2; 72 72 $str = substr($str,strlen($str2)); 73 74 73 } 75 74 $LinePart = substr($LinePart,strlen($value_buff)+2); 76 } 77 $Value[$column] = trim($value_buff); 78 // echo ($column.'-'.$Value[$column].'<br>'); 75 } 76 if (($value_buff != 'null') and ($value_buff != 'NULL')) 77 { 78 $str = ''; 79 while(substr($value_buff,strlen($value_buff)-1,1) == " ") 80 { 81 $value_buff = substr($value_buff,0,strlen($value_buff)-1); 82 $str .= ' '; 83 } 84 $str2 = ''; 85 while(substr($value_buff,0,1) == " ") 86 { 87 $value_buff = substr($value_buff,1,strlen($value_buff)-1); 88 $str2 .= ' '; 89 } 90 $Value[$column] = $str2.trim($value_buff).$str; 91 } else { 92 $Value[$column] = ''; 93 } 94 // echo ($column.'-"'.$Value[$column].'"<br>'); 79 95 } 80 96
Note:
See TracChangeset
for help on using the changeset viewer.