Changeset 306 for trunk/aktuality/import_zdechov_cz_aktuality.php
- Timestamp:
- Jan 30, 2011, 8:56:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aktuality/import_zdechov_cz_aktuality.php
r196 r306 9 9 $StartDate = 'vloženo: '; 10 10 $Category = 12; 11 $Author = 'Automat'; 11 12 12 13 $Content = addslashes(ToUTF8(file_get_contents($SourceURL), 'win1250')); … … 35 36 if($DbResult->num_rows == 0) 36 37 { 37 $Database->insert('News', array('Title' => $Title, 'Date' => $Date, 'Author' => 'zdechov.cz', 'Category' => $Category, 'Content' => addslashes($Description)));38 $Database->insert('News', array('Title' => $Title, 'Date' => $Date, 'Author' => $Author, 'Category' => $Category, 'Content' => addslashes($Description), 'Link' => $Link)); 38 39 echo($Database->insert_id.','); 39 40 }
Note:
See TracChangeset
for help on using the changeset viewer.