• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

How to insert data from multiple select dropdown values into database?

php


PHP Snippet 1:

$selection = $_REQUEST['purchase_group'];

PHP Snippet 2:

<select id="purchase_group" name="purchase_group[]" class="form-control" multiple="multiple">

Related Snippets

php curl_exec() Connection refused when retrieving a remote image

Get all WooCommerce products within own plugin

Warning: mysqli_stmt::bind_param(): Number of elements in type definition string doesn't match number of bind variables 11 [closed]

jQuery Ajax Post with data

PHP Warning: Module already loaded in Unknown on line 0

Utf8 encoding issue with Laravel

Sentry on Symfony: how to exclude `NotFoundHttpException`

Display Brand Name Above Product Title in Woocommerce Cart, Checkout Page, Orders and Email Notification

yii2 and mssql insert varbinary into model

Laravel Nova, route not found

ORA-12546: TNS:permission denied error connection to remote oracle server

Changing font color in javascript

CodeIgniter 4: Like and Dislike Functionality

PHP: Calling MySQL Stored Procedure with Both INPUT AND OUTPUT Parameters (NOT "INOUT")

Artisan, creating tables in database

About Contact Privacy policy Terms and conditions