Insert multiple checkbox values

I solve it.

public function insertionRow($id){

    global $wpdb;
    $wpdb->query("INSERT INTO wp_choix_attributs_liste (att_id) VALUES (".$id.");");
}

In my html with the checkbox.

if(isset($_POST['sub']))  
    {  

        foreach ($_POST['choixP'] as $id) {
            self::insertionRow($id);
        }
    } 

tech