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