Changeset 310 for trunk/aktuality/import_zdechov_cz_aktuality.php
- Timestamp:
- Feb 6, 2011, 7:07:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aktuality/import_zdechov_cz_aktuality.php
r306 r310 32 32 */ 33 33 34 $DbResult = $Database->select('News', 'Id', '`Title`="'.$ Title.'" AND `Date`="'.$Date.'" AND `Category`='.$Category);34 $DbResult = $Database->select('News', 'Id', '`Title`="'.$Database->real_escape_string($Title).'" AND `Date`="'.$Date.'" AND `Category`='.$Category); 35 35 //echo($Database->LastQuery); 36 36 if($DbResult->num_rows == 0) 37 37 { 38 $Database->insert('News', array('Title' => $Title, 'Date' => $Date, 'Author' => $Author, 'Category' => $Category, 'Content' => addslashes($Description), 'Link' => $Link));38 $Database->insert('News', array('Title' => $Title, 'Date' => $Date, 'Author' => $Author, 'Category' => $Category, 'Content' => $Description, 'Link' => $Link)); 39 39 echo($Database->insert_id.','); 40 40 }
Note:
See TracChangeset
for help on using the changeset viewer.