Changeset 542 for trunk/Modules/News/ImportTvBeskyd.php
- Timestamp:
- Jun 2, 2013, 9:14:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/ImportTvBeskyd.php
r533 r542 31 31 //echo('Link: '.$Link.'<br><hr>'); 32 32 33 $DbResult = $ Database->select('News', 'Id', '`Title`="'.$Database->real_escape_string($Title).'" AND `Category`='.$Category);34 //echo($ Database->LastQuery);33 $DbResult = $System->Database->select('News', 'Id', '`Title`="'.$System->Database->real_escape_string($Title).'" AND `Category`='.$Category); 34 //echo($System->Database->LastQuery); 35 35 if($DbResult->num_rows == 0) 36 36 { 37 $ Database->insert('News', array('Title' => $Title, 'Date' => 'NOW()', 'Author' => $Author, 'Category' => $Category, 'Content' => $Description, 'Link' => $Link));38 echo($ Database->insert_id.',');37 $System->Database->insert('News', array('Title' => $Title, 'Date' => 'NOW()', 'Author' => $Author, 'Category' => $Category, 'Content' => $Description, 'Link' => $Link)); 38 echo($System->Database->insert_id.','); 39 39 } 40 40 }
Note:
See TracChangeset
for help on using the changeset viewer.