getCategories(); $arr_diff = importDiff($table, $arr); if(count($arr_diff['delete'])) { foreach($arr_diff['delete'] as $name) { $sql = "DELETE FROM $table WHERE name = ".$db->quote($name).";"; shell::msg($sql); $db->query($sql); } } if(count($arr_diff['insert'])) { foreach($arr_diff['insert'] as $name) { $arr_insert = array('name' => $name); $db->autoExecute($table, $arr_insert, MDB2_AUTOQUERY_INSERT); } } ?>