Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

213
 
215
 
215
 
reviews.php
_> 11 <?php
  22 /*
<> 3 -  $Id: reviews.php 213 2005-10-05 10:37:33Z hpdl $
   3+  $Id: reviews.php 215 2005-10-05 19:29:55Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
171171 
  172172       return $Qreviews;
  173173     }
<>  174+
   175+    function saveEntry($data) {
   176+      global $osC_Database;
   177+
   178+      $Qreview = $osC_Database->query('insert into :table_reviews (products_id, customers_id, customers_name, reviews_rating, languages_id, reviews_text, reviews_status, date_added) values (:products_id, :customers_id, :customers_name, :reviews_rating, :languages_id, :reviews_text, :reviews_status, now())');
   179+      $Qreview->bindTable(':table_reviews', TABLE_REVIEWS);
   180+      $Qreview->bindInt(':products_id', $data['products_id']);
   181+      $Qreview->bindInt(':customers_id', $data['customer_id']);
   182+      $Qreview->bindValue(':customers_name', $data['customer_name']);
   183+      $Qreview->bindValue(':reviews_rating', $data['rating']);
   184+      $Qreview->bindInt(':languages_id', $_SESSION['languages_id']);
   185+      $Qreview->bindValue(':reviews_text', $data['review']);
   186+      $Qreview->bindInt(':reviews_status', $data['status']);
   187+      $Qreview->execute();
   188+    }
<_ 174189   }   
  175190 ?>