Ignore:
Timestamp:
Apr 27, 2009, 8:00:50 AM (16 years ago)
Author:
george
Message:
  • Upraveno: Názvy tabulek a sloupců aktualit pozměněny na názvy se slovy začínající velkými písmeny.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/aktuality/import_zdechov_cz_zapisy.php

    r151 r196  
    3030*/
    3131
    32   $DbResult = $Database->select('news', 'id', '`title`="'.$Title.'" AND `date`="'.$Date.'" AND `category`='.$Category);
     32  $DbResult = $Database->select('News', 'Id', '`Title`="'.$Title.'" AND `Date`="'.$Date.'" AND `Category`='.$Category);
    3333  //echo($Database->LastQuery);
    3434  if($DbResult->num_rows == 0)
    3535  {
    36     $Database->insert('news', array('title' => $Title, 'date' => $Date, 'author' => 'zdechov.cz', 'category' => $Category, 'content' => $Description));
     36    $Database->insert('News', array('Title' => $Title, 'Date' => $Date, 'Author' => 'zdechov.cz', 'Category' => $Category, 'Content' => $Description));
    3737    echo($Database->insert_id.',');
    3838  }
Note: See TracChangeset for help on using the changeset viewer.