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_obec_hovezi.php

    r306 r310  
    2020  $Date = $node->getElementsByTagName('pubDate')->item(0)->nodeValue;
    2121 
    22   $Title = $Database->real_escape_string($Title);
    2322  $Description = strip_tags($Description);
    2423  $Description = str_replace("\r", '', $Description);
    2524  $Description = str_replace("\n", '<br>', $Description);
    26   $Description = $Database->real_escape_string($Description);
    27   $Link = $Database->real_escape_string($Link);
    2825  //if(($CommaPos = strpos($Date, ',')) !== FALSE)
    2926  //  $Date = substr($Date, $CommaPos + 1);
     
    3128 
    3229 
    33   $DbResult = $Database->select('News', 'Id', '(`Title`="'.$Title.'") AND (`Category`='.$Category.') AND (`Content` = "'.$Description.'") AND (`Link` = "'.$Link.'")');
     30  $DbResult = $Database->select('News', 'Id', '(`Title`="'.$Database->real_escape_string($Title).'") AND (`Category`='.$Category.') AND (`Content` = "'.$Database->real_escape_string($Description).'") AND (`Link` = "'.$Database->real_escape_string($Link).'")');
    3431  //echo($Database->LastQuery);
    3532  if($DbResult->num_rows == 0)
Note: See TracChangeset for help on using the changeset viewer.