Esempio n. 1
0
 function Get_union()
 {
     $queries = func_get_args();
     $view = new DbView();
     $union_table = $view->get_temp_table($view->get_parsed_query($queries[0]));
     if ($queries[1]) {
         for ($i = 1; $i < count($queries); ++$i) {
             $view->db->query("REPLACE INTO {$union_table} " . $view->get_parsed_query($queries[$i]));
         }
     }
     return $union_table;
 }