示例#1
0
 public function _insertTmpProducts($array_product, $key, $triple)
 {
     $view_manager = new ViewManager();
     $result = $view_manager->_getSqlNewProducts($array_product, $key, $triple);
     $connection = connectionServer();
     foreach ($result as $sql) {
         $res = null;
         $res = mysql_query($sql, $connection);
         if ($res) {
         } else {
             $errno = mysql_errno($connection);
             $error = mysql_error($connection);
             switch ($errno) {
                 case 1062:
                     throw new HandleOperationsException($error);
                     break;
                 default:
                     throw new HandleOperationsException($error);
                     break;
             }
         }
     }
     closeConnectionServer($connection);
 }