Changeset 306 for trunk/aktuality/import_tv_beskyd.php
- Timestamp:
- Jan 30, 2011, 8:56:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aktuality/import_tv_beskyd.php
r251 r306 9 9 $StartLink = 'url="'; 10 10 $Category = 13; 11 $Author = ' dviproduction.cz';11 $Author = 'Automat'; 12 12 13 13 //$Content = addslashes(ToUTF8(file_get_contents($SourceURL), 'win1250')); … … 26 26 // $Link = substr($Link, 0, strpos($Link, '?')); // Remove URL parameters 27 27 // $Link = substr($Link, 0, strrpos($Link, '/')).substr($Link, strrpos($Link, '/')); // Insert month between folder and filename 28 $Description .= '<br><a href="'.$Link.'">Video</a>';29 28 30 29 //echo('Title: '.$Title.'<br>'); … … 36 35 if($DbResult->num_rows == 0) 37 36 { 38 $Database->insert('News', array('Title' => $Title, 'Date' => 'NOW()', 'Author' => $Author, 'Category' => $Category, 'Content' => $Description ));37 $Database->insert('News', array('Title' => $Title, 'Date' => 'NOW()', 'Author' => $Author, 'Category' => $Category, 'Content' => $Description, 'Link' => $Link)); 39 38 echo($Database->insert_id.','); 40 39 }
Note:
See TracChangeset
for help on using the changeset viewer.