Inserting data to wordpres database table

$table = $wpdb->prefix.”woocommerce_bonus_point”;
if($wpdb->insert(
$table,
array(
‘bonus_point_type’ => “product_category”,
‘bonus_point_type_name’ => $cat,
‘bonus_point_type_value’ => $value
)
)){
echo “inserted”;
}