Changeset 196 for trunk/aktuality/import_zdechov_cz_zapisy.php
- Timestamp:
- Apr 27, 2009, 8:00:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aktuality/import_zdechov_cz_zapisy.php
r151 r196 30 30 */ 31 31 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); 33 33 //echo($Database->LastQuery); 34 34 if($DbResult->num_rows == 0) 35 35 { 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)); 37 37 echo($Database->insert_id.','); 38 38 }
Note:
See TracChangeset
for help on using the changeset viewer.