Ignore:
Timestamp:
Feb 6, 2011, 7:07:14 PM (14 years ago)
Author:
george
Message:
  • Opraveno: V importech aktualit opraveno lomítkování.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/aktuality/import_zdechov_cz_aktuality.php

    r306 r310  
    3232*/
    3333
    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);
    3535  //echo($Database->LastQuery);
    3636  if($DbResult->num_rows == 0)
    3737  {
    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));
    3939    echo($Database->insert_id.',');
    4040  }
Note: See TracChangeset for help on using the changeset viewer.